[WebService] General Media Access Webservice (2 Viewers)

dirki1972

Portal Pro
July 23, 2007
217
16
Home Country
Germany Germany
AW: Re: AW: Re: [WebService] General Media Access Webservice

Like Mike said above, could you upload your database please (or send it to me or Mike in a private message if you don't want to upload it publicly)?

ok here it is

Ok, so what happened here was that 2 different issues made it hard to pinpoint the problem
a) the test url didn't work because of the large number of items (timeout). You'll see that http://localhost:44321/GmaWebServic...ums?sort=0&order=0&startIndex=0&endIndex=1000 will return data.
b) aMPdroid crashed because a few items had missing artist information (which was used to generate the thumb location).

The android bug has been fixed but you'll have to wait for the next version (although you might consider cleaning up your music database anyhow ... :eek:).

somebody know how i can create a fresh new music-database? because i dont found a button or something like that in config of MP.

reards
dirk
 

sproth

New Member
June 9, 2011
2
0
Home Country
Switzerland Switzerland
Hi
I am using MediaPortal 1.1.3 and GMA WebService 0.2.0.0 Beta (I downloaded and installed the SW yesterday).
When I create a music database with the Media Portal Config then the file MusicDatabaseV11 is created.
The default file for the GMA Web service however is MusicDatabaseV12
If I change the filename in the config.xml of the GMA to MusicDatabaseV11 the web access to the general service is OK
http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions

However the access to the music albums and music artists does not work at all
http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllAlbums?sort=0&order=0
http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllArtists?sort=0&order=0

If I leave the name of the music database in the config.xml as MusicDatabaseV12 and make a copy in the Media Portal database directory of MusicDatabaseV11 and rename it to MusicDatabaseV12 (means I have now 2 identical database files with just different names), then the GMA access works OK.

To me it looks like the database name (MusicDatabaseV12) is somewhere hardcoded in the GMA Webservice application and does not consider for all instances the name specified in the config.xml.
Only strange thing is that I seem to be the only one with this problem....

I still have another problem with aMPdroid:
When I go to the artist list and then select an artist, aMPdroid hangs while loading albums. Not sure if this is related to GMA webservice or to aMPdroid.

Any hints what I do wrong?
 

Terra

Portal Pro
August 25, 2009
230
57
Home Country
Austria Austria
AW: [WebService] General Media Access Webservice

Hi!

I'm using GMA Webservice 0.2.0.0 and Media Portal Beta 1.2.0 Beta. I Installed the service and set all the paths to the thumbs and databases correctly but when I try the testlinks I get a file back with only 2 empty brackets -> []
I assume there should be the content of my media library...

I cannot find any logs that would help me. I get the same results for videos, music, albums, etc.

Any idea?
 

DieBagger

Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Re: AW: [WebService] General Media Access Webservice

    Hi
    I am using MediaPortal 1.1.3 and GMA WebService 0.2.0.0 Beta (I downloaded and installed the SW yesterday).
    When I create a music database with the Media Portal Config then the file MusicDatabaseV11 is created.
    The default file for the GMA Web service however is MusicDatabaseV12
    If I change the filename in the config.xml of the GMA to MusicDatabaseV11 the web access to the general service is OK
    http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions

    However the access to the music albums and music artists does not work at all
    http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllAlbums?sort=0&order=0
    http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllArtists?sort=0&order=0

    If I leave the name of the music database in the config.xml as MusicDatabaseV12 and make a copy in the Media Portal database directory of MusicDatabaseV11 and rename it to MusicDatabaseV12 (means I have now 2 identical database files with just different names), then the GMA access works OK.

    To me it looks like the database name (MusicDatabaseV12) is somewhere hardcoded in the GMA Webservice application and does not consider for all instances the name specified in the config.xml.
    Only strange thing is that I seem to be the only one with this problem....

    I still have another problem with aMPdroid:
    When I go to the artist list and then select an artist, aMPdroid hangs while loading albums. Not sure if this is related to GMA webservice or to aMPdroid.

    Any hints what I do wrong?

    You need to restart the service (or reboot pc) for these changes to take affect...

    Hi!

    I'm using GMA Webservice 0.2.0.0 and Media Portal Beta 1.2.0 Beta. I Installed the service and set all the paths to the thumbs and databases correctly but when I try the testlinks I get a file back with only 2 empty brackets -> []
    I assume there should be the content of my media library...

    I cannot find any logs that would help me. I get the same results for videos, music, albums, etc.

    Any idea?

    What is returned by http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions ? Can you upload your database so we can see if there is any problem in there?
     

    sproth

    New Member
    June 9, 2011
    2
    0
    Home Country
    Switzerland Switzerland
    Hi DieBagger
    Thanks for getting back to me so quickly :)

    About restarting GMA: Whenever I did changes (config.xml or on the datatbase file) I stopped the service, did the changes and then restarted it again. Initially I also rebooted the PC, but this neither helped.

    OK, I started now from scratch (but with the same result):
    1.) Stopped the GMA webservice
    2.) Deleted the 2 database files MusicDatabaseV11.db3 and MusicDatabaseV12.db3
    3.) Opened the Team Media Player Config and created a new (mini) Music database
    --> MusicDatabaseV11.db3 was created, is attached to this post
    4.) Changed in the GMA config.XML the database path to the current music database:
    --> <database name="music" filename="C:\ProgramData\Team MediaPortal\MediaPortal\database\MusicDatabaseV11.db3" />
    5.) Started the GMA Webservice (via Windows services)
    --> Note: Now suddenly a new (empty) V12 file is created in the database folder of TeamMediaPortal (MusicDatabaseV12.db3)
    --> This file was apparently created by the GMA webservice, even tough I specified V11 as filename in the config.XML
    6.) Opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions
    --> I get the following reply:
    {"MoviesFunction":{"Description":"MovingPicture Movies","Id":0,"ImagePath":"\/Thumbs\/Movies.png","Name":"Movies"},"MusicFunction":{"Description":"Listen to your music","Id":0,"ImagePath":"\/Thumbs\/Music.png","Name":"Music"},"PicturesFunction":{"Description":"Watch your pictures","Id":0,"ImagePath":"\/Thumbs\/Pictures.png","Name":"Pictures"},"SupportsMovies":false,"SupportsMusic":true,"SupportsPictures":false,"SupportsTV":false,"SupportsTvSeries":true,"SupportsVideos":true,"TVFunction":null,"TvSeriesFunction":{"Description":"MP-TvSeries TV Shows","Id":0,"ImagePath":"\/Thumbs\/TVSeries.png","Name":"TV Series"},"VideosFunction":{"Description":"MediaPortal Videos","Id":0,"ImagePath":"\/Thumbs\/Videos.png","Name":"Videos"}}


    7.) opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllAlbums?sort=0&order=0
    --> NOK: Firefox can't find the file at http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllAlbums?sort=0&order=0.
    8.) opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllArtists?sort=0&order=0
    --> NOK: Firefox can't find the file at http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllArtists?sort=0&order=0.

    9.) checked as well via aMPdroid. There I can access the "shares", but music / artist states "no connection"

    10.) stopping GMA webservice (via windows services)
    11.) making a copy of MusicDatabaseV11.db3 and rename this copy to MusicDatabaseV12.db3
    12.) change GMA webservice config.xml from MusicDatabaseV11.db3 to MusicDatabaseV12.db3
    13.) starting the GMA service
    14.) opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions
    -->I get the following reply:
    {"MoviesFunction":{"Description":"MovingPicture Movies","Id":0,"ImagePath":"\/Thumbs\/Movies.png","Name":"Movies"},"MusicFunction":{"Description":"Listen to your music","Id":0,"ImagePath":"\/Thumbs\/Music.png","Name":"Music"},"PicturesFunction":{"Description":"Watch your pictures","Id":0,"ImagePath":"\/Thumbs\/Pictures.png","Name":"Pictures"},"SupportsMovies":false,"SupportsMusic":true,"SupportsPictures":false,"SupportsTV":false,"SupportsTvSeries":true,"SupportsVideos":true,"TVFunction":null,"TvSeriesFunction":{"Description":"MP-TvSeries TV Shows","Id":0,"ImagePath":"\/Thumbs\/TVSeries.png","Name":"TV Series"},"VideosFunction":{"Description":"MediaPortal Videos","Id":0,"ImagePath":"\/Thumbs\/Videos.png","Name":"Videos"}}

    15.) opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllAlbums?sort=0&order=0
    --> seems to be OK, see attached file for the reply

    16.) opened the link http://localhost:44321/GmaWebService/MediaAccessService/json/GetAllArtists?sort=0&order=0
    --> seems to be OK, see attached file for the reply

    17.) opened aMPdroid:
    -->Songs tab is working fine, can select songs to play with Team Media Portal
    --> Albums tab is working, I see all the Albums, but I cannot select them to be played (not sure if this is normal..)
    --> Artist tab has 2 problems: 1st: of the 2 artists contained in my mini music database, only one (DepecheMode) appears
    2nd once I select "Album" aMPdroid hangs while the message "loading Albums" is displayed

    Sorry for this long post, but I thought I describe my steps as accurate as possible
    Again thanks for your help
    Stefan
     

    Attachments

    • MusicDatabaseV11.zip
      35.6 KB
    • GetAllAlbums.zip
      953 bytes
    • GetAllArtists.zip
      203 bytes

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Thanks for the detailled description and your database, that made it really easy to pinpoint the problems...

    Well actually it was only one problem: The one were only one artist is shown instead of two. I already fixed this, the other problems have already been fixed in the latest (svn) versions of gma webservice and aMPdroid.

    So with the next release your problems should be gone... :)
     

    Terra

    Portal Pro
    August 25, 2009
    230
    57
    Home Country
    Austria Austria
    AW: Re: AW: [WebService] General Media Access Webservice

    What is returned by http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions ? Can you upload your database so we can see if there is any problem in there?

    Here's the content that is returned:
    {"MoviesFunction":{"Description":"MovingPicture Movies","Id":0,"ImagePath":"\/Thumbs\/Movies.png","Name":"Movies"},"MusicFunction":{"Description":"Listen to your music","Id":0,"ImagePath":"\/Thumbs\/Music.png","Name":"Music"},"PicturesFunction":{"Description":"Watch your pictures","Id":0,"ImagePath":"\/Thumbs\/Pictures.png","Name":"Pictures"},"SupportsMovies":false,"SupportsMusic":false,"SupportsPictures":false,"SupportsTV":false,"SupportsTvSeries":false,"SupportsVideos":false,"TVFunction":null,"TvSeriesFunction":{"Description":"MP-TvSeries TV Shows","Id":0,"ImagePath":"\/Thumbs\/TVSeries.png","Name":"TV Series"},"VideosFunction":{"Description":"MediaPortal Videos","Id":0,"ImagePath":"\/Thumbs\/Videos.png","Name":"Videos"}}

    I will send you the databases with a PM!

    thanks :)
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Re: AW: Re: AW: [WebService] General Media Access Webservice

    What is returned by http://localhost:44321/GmaWebService/MediaAccessService/json/GetSupportedFunctions ? Can you upload your database so we can see if there is any problem in there?

    Here's the content that is returned:
    {"MoviesFunction":{"Description":"MovingPicture Movies","Id":0,"ImagePath":"\/Thumbs\/Movies.png","Name":"Movies"},"MusicFunction":{"Description":"Listen to your music","Id":0,"ImagePath":"\/Thumbs\/Music.png","Name":"Music"},"PicturesFunction":{"Description":"Watch your pictures","Id":0,"ImagePath":"\/Thumbs\/Pictures.png","Name":"Pictures"},"SupportsMovies":false,"SupportsMusic":false,"SupportsPictures":false,"SupportsTV":false,"SupportsTvSeries":false,"SupportsVideos":false,"TVFunction":null,"TvSeriesFunction":{"Description":"MP-TvSeries TV Shows","Id":0,"ImagePath":"\/Thumbs\/TVSeries.png","Name":"TV Series"},"VideosFunction":{"Description":"MediaPortal Videos","Id":0,"ImagePath":"\/Thumbs\/Videos.png","Name":"Videos"}}

    I will send you the databases with a PM!

    thanks :)

    Well everything works fine here with the svn version of aMPdroid and GmaWebservice. You have a few items with special characters in your database and there have been a few bugs related to those in the last release. With the next release everything should work just fine...
     

    Terra

    Portal Pro
    August 25, 2009
    230
    57
    Home Country
    Austria Austria
    AW: Re: AW: Re: AW: [WebService] General Media Access Webservice

    Well everything works fine here with the svn version of aMPdroid and GmaWebservice. You have a few items with special characters in your database and there have been a few bugs related to those in the last release. With the next release everything should work just fine...

    Ok, I will wait for the next release. Thanks for checking.
    I have my databases, thumbs and mediaportal config stored on my server and the folder is mapped as a network drive on the client, could that also be a problem?
     

    Users who are viewing this thread

    Top Bottom