Bug Retrieving musicbrainzalbumid via AudioLibrary.GetAlbums fails
#1
All,

I am trying to retrieve the musicbrainzalbumid via the AudioLibrary.GetAlbums and failed to do so.
The Kodi version I am using is Isengard 15.0.

To be absolute sure I am using a local album.nfo (but tagging with Picard neither helps), which looks like this:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<album>
    <musicBrainzAlbumID>90be9548-f3d8-41bd-9f48-cb2fcd9b13c2</musicBrainzAlbumID>
    <title>Mother earth (local nfo)</title>
    <artist>Within Temptation</artist>
    <genre>Rock</genre>
    <style>Symphonic Rock</style>
    <review></review>
    <label></label>
    <releasedate></releasedate>
    <year>2002</year>
</album>

The output from AudioLibrary.GetAlbums is:
Code:
albumid = 34;
        albumlabel = "";
        artist =         (
            "Within Temptation"
        );
        artistid =         (
            25
        );
        description = "";
        fanart = "image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2feace2373-31c8-4aba-9a5c-7bce22dd140a%2fartistbackground%2fwithin-temptation-4e4acd7176038.jpg/";
        genre =         (
            Rock
        );
        label = "Mother earth (local nfo)";
        mood =         (
        );
        musicbrainzalbumartistid = "";
        musicbrainzalbumid = "";
        rating = 0;
        style =         (
            "Symphonic Rock"
        );
        theme =         (
        );
        thumbnail = "image://C%3a%5cMP3%5cMother%20earth%5cFolder.jpg/";
        title = "Mother earth (local nfo)";
        type = "";
        year = 2002;

Edit: When getting songs from the album it lists a musicbrainztrackid, so I know Picard did it's work
Code:
album = "Mother Earth";
            albumartist =             (
                "Within Temptation"
            );
            albumid = 34;
            artist =             (
                "Within Temptation"
            );
            artistid =             (
                25
            );
            comment = "";
            duration = 420;
            file = "C:\\MP3\\Mother earth\\10 In Perfect Harmony.mp3";
            genre =             (
                World
            );
            label = "In Perfect Harmony";
            lyrics = "";
            musicbrainzalbumartistid = "";
            musicbrainzalbumid = "";
            musicbrainzartistid = "";
            musicbrainztrackid = "bcddbb29-86e8-4224-b3ec-8c98c92c7124";
            playcount = 0;
            rating = 0;
            songid = 381;
            title = "In Perfect Harmony";
            track = 10;
            year = 2003;

Anyone a clue of what I could be doing wrong?
Proud owner of comics42.shop 
Reply
#2
Please post your request(s).
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
(2015-08-15, 14:48)Montellese Wrote: Please post your request(s).

What do you mean with post your request?
Proud owner of comics42.shop 
Reply
#4
You only posted the data you get back from JSON-RPC (in a rather odd format as it's not JSON anymore) but you didn't post what request you sent to get that data/response.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
(2015-08-15, 14:51)Montellese Wrote: You only posted the data you get back from JSON-RPC (in a rather odd format as it's not JSON anymore) but you didn't post what request you sent to get that data/response.

I have narrowed it down to this simple request which also doesn't return the musicbrainzalbumid. I took a chrome browser screenshot so that you could also see the results within the browser.

Image
Proud owner of comics42.shop 
Reply
#6
Some additional info from the debug log:

15:19:09 T:2384 DEBUG: webserver: request received for /jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22AudioLibrary.GetAlbums%22,%22params%22:{%22properties%22:[%22title%22,%22musicbrainzalbumid%22]},%22id%22:1}
15:19:09 T:2384 DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","params":{"properties":["title","musicbrainzalbumid"]},"id":1}
15:19:09 T:2384 DEBUG: CMusicDatabase::GetAlbumsByWhere query: SELECT albumview.* FROM albumview WHERE albumview.strReleaseType = 'album'
15:19:09 T:2384 DEBUG: CMusicDatabase::GetAlbumsByWhere - query took 1 ms
Proud owner of comics42.shop 
Reply
#7
@montellesse:

Shall I file a bug report?
Proud owner of comics42.shop 
Reply
#8
Sure
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
here you go:

http://trac.kodi.tv/ticket/16232

I have also added a (partly)dump of the database:

Image

I am a bit confused, because the local nfo says another musicbrainzalbumid. Need to look into that. However the fact remains that it's returned empty.
Proud owner of comics42.shop 
Reply
#10
@Montellese : Saw the ticket status changed to fixed. Thanks a lot!
Proud owner of comics42.shop 
Reply
#11
(2015-09-11, 11:53)rschiks Wrote: @Montellese : Saw the ticket status changed to fixed. Thanks a lot!

I'll also look into backporting this to the next Isengard point release if I find the time.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#12
(2015-09-11, 11:56)Montellese Wrote:
(2015-09-11, 11:53)rschiks Wrote: @Montellese : Saw the ticket status changed to fixed. Thanks a lot!

I'll also look into backporting this to the next Isengard point release if I find the time.

That would definitely be appreciated Big Grin
Proud owner of comics42.shop 
Reply
#13
I have installed 15.2 rc3 and this problem has been fixed :-) Thanks for that.

I assumed by fixing this the other info would also appear in other methods like AudioLibrary.GetArtists and AudioLibrary.GetSongs but this seems not the case.

The following request gives an empty musicbrainzartistid:

{"jsonrpc":"2.0","method":"AudioLibrary.GetArtists","params":{"properties":["musicbrainzartistid"]},"id":1}

Image

The database shows this:

Image

How shall I proceed. Create another ticket?
Proud owner of comics42.shop 
Reply
#14
That might actually be fixed in the nightly for 16.0

See: https://github.com/xbmc/xbmc/pull/8079
Reply
#15
(2015-10-05, 17:51)Razze Wrote: That might actually be fixed in the nightly for 16.0

See: https://github.com/xbmc/xbmc/pull/8079

Thanks for the info!
Proud owner of comics42.shop 
Reply

Logout Mark Read Team Forum Stats Members Help
Retrieving musicbrainzalbumid via AudioLibrary.GetAlbums fails1