Be sure to read https://yatse.tv/wiki/debug-yatse-kodi-remote to provide necessary logs and information.
Issue description :
Hello,
Sorry for my bad english, i’m french.
i use yatse for jellyfin
For some time now, some artists have found this without songs or albums.
Logs :
debug-20210715_211014.zip (4.8 MB)
Screenshots :
Additional information :
Tolriq
July 15, 2021, 7:35pm
2
There’s a bug in their API that return non matching IDs and no way to get the missing data.
opened 09:18AM - 15 May 21 UTC
closed 04:03PM - 30 Dec 21 UTC
bug
**Describe the bug**
API returns non matching data for artists causing proble… ms for API consumers.
**System (please complete the following information):**
Any OS, reported mostly with 10.7.X but maybe present before.
**To Reproduce**
Query the artists :
```
http://xxxxx:8096/Artists?Recursive=true&ParentId=xxxx&Fields=Genres,SortName,ProviderIds,DateCreated&startIndex=0&limit=1000&UserId=xxxxx
```
You will get for example
```
{"Name":"Adele","ServerId":"xxxxxxx","Id":"935931fba2250076087b1dcfe0d9d39c","DateCreated":"2020-06-21T18:39:28.2497865Z","SortName":"adele","ChannelId":null,"Genres":["Pop","Pop Soul","Folk"],"RunTimeTicks":105382797312,"ProviderIds":{},"Type":"MusicArtist","GenreItems":[{"Name":"Pop","Id":"f1f202f389018ad2c0766af4b0fcb155"},{"Name":"Pop Soul","Id":"2ca505ceb89ddb4b3def5271883f7cf9"},{"Name":"Folk","Id":"9a542eba8ecf66ca66dc99ecf3452477"}],"UserData":{"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"Artist-Adele"},"ImageTags":{},"BackdropImageTags":[],"ImageBlurHashes":{},"LocationType":"FileSystem"}
```
Notice the ID: **935931fba2250076087b1dcfe0d9d39c**
Then request the albums:
```
http://xxxx:8096/Users/xxx/Items?Recursive=true&IncludeItemTypes=MusicAlbum&ParentId=7e64e319657a9516ec78490da03edccb&ExcludeLocationTypes=Virtual&Fields=Genres,SortName,Path,DateCreated,ProductionYear,CommunityRating&startIndex=0&limit=1000&UserId=xxxx
```
And the albums will have:
```
"ArtistItems":[{"Name":"Adele","Id":"fe0ce443bd0a8c005e05e62c4b47b45b"}],"AlbumArtist":"Adele","AlbumArtists":[{"Name":"Adele","Id":"fe0ce443bd0a8c005e05e62c4b47b45b"}]
```
Another ID for the artist making it impossible to match both from the API.
**Expected behavior**
The same ID or both IDS should be returned by both end points when Jellyfin have multiple IDs internally.
They do not seem interested in fixing any time soon.
Okay
Not possible to bypass
Tolriq
July 15, 2021, 7:56pm
4
Save your database and rescan your music.
For a few users this fix the issue by only having 1 ID. For others it’s more about artist with and without musicbrainz ID.
But yes on my side from the API I have access to there’s nothing I can use to workaround.
It’s Ok with Rescan library
Tolriq
July 16, 2021, 5:38pm
6
Good to know, I really hope they one day fix this it hits more and more people
SBado
July 21, 2021, 7:21am
7
Hello! I’m facing the same problem, so I thought to give Finamp a try and it’s working correctly for me. @Tolriq maybe you can ask the author how he got around this API limitation?
Tolriq
July 21, 2021, 8:18am
8
They don’t use any cache at all, and query everything each time a complete different way than Yatse.
So it works thanks to the internals of Jellyfin that knows about the multiple IDs and returns the albums whatever IDs is used. But this can’t work for Yatse that works 100% offline.
They really need to fix the API if they care about having advanced clients.
1 Like