-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[music]Fix fanart for library items on playback from file view #13854
Conversation
…own when playing library items from file view. Song.strThumb is never read from db
Hi Dave, this doesn't seem to have had any effect as far as I can tell - Files fanart still isn't being displayed in a test build that includes this PR. |
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 Files view in test build Same Files view in test build 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 |
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:
song.strThumb
is never read from the db, hence results in a blank entry. Since the art is managed elsewhere, this line should be removed fromCFileItem::LoadMusicTag()
. It was an historic mistake, the effects of which had been previously avoided because of code elsewhere that was recently removed. To test: play music that is in the library and has artist fanart from file view, note fanart shown on player OSD@MilhouseVH this fixes the issue reported here https://forum.kodi.tv/showthread.php?tid=298461&pid=2730270#pid2730270