Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[music]Fix fanart for library items on playback from file view #13854
Art type "thumb" was sometimes being added to a song with an empty URL, preventing artist fanart from being shown on playback of library items from file view.
A simple fix:
@MilhouseVH this fixes the issue reported here https://forum.kodi.tv/showthread.php?tid=298461&pid=2730270#pid2730270
Odd @MilhouseVH , it works for me. Also "file fanart"? The facility only applies to items that are in the library (with art) and then happen to be played from fileview. Is that what you tested?
Not intended to work for non-library music files, even if there is a fanart.jpg in the folders above.
It doesn't seem to make any difference if the album is in the library or not - I've tested both cases, and both fail to show fanart artwork after #13352 (which first appeared in test build
This is my test setup:
Folder #1, "Alphabet City" (album NOT in library although the artist, ABC, is in the libary):
This is the metadata for the artist:
When I navigate to the album folder "Alphabet City" via Files then - prior to #13352 - I'm shown the fanart artwork associated with the artist ABC. I have confirmed this by changing the artist fanart and the fanart shown when browsing the "Alphabet City" folder automatically changes to match whatever I set in the database (via JSON). Kodi never seems to load the contents of
Folder #2, "Beauty Stab" (album IS in the library):
Again, the fanart is shown in
Maybe my testing isn't quite the same as your own (or the user that reported this) but it does certainly show different behaviour before/after #13352, and this PR does not (currently) restore this old behaviour.
One other observation which is unrelated to #13352:
I changed the album artwork for "Beauty Stab" and Kodi (with build
Thanks for the extra details @MilhouseVH
Yes, what you are doing is different, but I understand the results. However this PR does not claim to restore the pre #13352 behaviour, but just to show artist fanart when playing albums/songs that are in the library from fileview. You didn't test that.
What you did do was interesting, and it did show some other changed behaviour (not what the user complained about).
"Alphabet City" is not in the library, so this PR does not make it show artist fanart from fileview. But this situation - doing a lookup for fanart on artist name for non-library albums/songs when artist is in the library - is something that was dropped by #13352, and I will restore in another PR.
That is because your
"Beauty Stab" is in the library, but from the JSON output you seem to have added "fanart" for the album (not the artist). Did you use JSON for that? I think you must have, and note it is something v17 couldn't do added by #13101. Not expecting playback from file view to show album "fanart" in any version. In
If with this PR you would like to try playing a library album by an artist with artist fanart from file view I'm sure you will see the fanart.
Ah OK, I was (mistakenly) focusing on the album art with my testing.
Yes, I used JSON to change the album fanart - I used
OK fair enough, and that seems to be the case indeed.
I'll have to take your word for it - I think my head just exploded. :)
By the way the user has reported no change in behaviour with this PR: https://forum.kodi.tv/showthread.php?tid=298461&pid=2732543#pid2732543
@MilhouseVH thanks for testing, confirming details of what you did and for including this in build
Not sure I trust his report accuracy (too excitable) but that probably means that, contrary to what he said initially, what he wants is to see artist fanart for albums that are not in the library i.e. try to lookup on artist name.
My thoughts are to merge this - it is a needed change - and rework the lookup on name in a separate PR. It was previous dropped because it was unnecessarily doing artist fanart lookup on artist name for everything, and corrected to use ID and get more types of artist art not just fanart. In a new PR I will restore that lookup by artist name for non-library albums and extend to other artist art types.
Definitely can't have your head exploding :p