Avoid removing reference to artwork for tracks without the album tag#1607
Avoid removing reference to artwork for tracks without the album tag#1607Zapdatt wants to merge 5 commits into
Conversation
|
This is my first time committing to a public repo so excuse me if I did anything wrong. |
title Signed-off-by: Zapdatt <54618617+Zapdatt@users.noreply.github.com>
Signed-off-by: Zapdatt <54618617+Zapdatt@users.noreply.github.com>
Signed-off-by: Zapdatt <54618617+Zapdatt@users.noreply.github.com>
Added new settings for artwork preservation and descriptions. Signed-off-by: Zapdatt <54618617+Zapdatt@users.noreply.github.com>
bbb6486 to
4d7a624
Compare
|
Thanks for this PR! I'm wondering whether this really needs a new preference, or whether the current behaviour shouldn't be considered a bug. Would you mind investigating whether this could be changed to not delete the value if it existed, and if the album didn't exist before either? |
|
@michaelherger After quit a bit of testing I found that changing the line |
…ared, Signed-off-by: Zapdatt <54618617+Zapdatt@users.noreply.github.com>
|
I have reverted the new preference I added, and updated my branch with the new working fix. |
|
I'm a bit puzzled. Maybe we should try to understand why we'd end up with no slimserver/Slim/Music/Artwork.pm Lines 278 to 280 in 9c80b34 Why would this fail, as |
|
I'm not sure if I fully understand, but I tried logging the variables when removing around line 341, and also in generateImageId at line 407. |
|
In order to reproduce the issue would I have to touch such a file before a rescan, or would a simple rescan without changing the file be good enough? Basically: can you give me step-by-step instructions how to reproduce this issue' |
|
If you just add a track without the album tag that has embedded artwork and then scan it will be added but you won't see the artwork. What I did was put a few of these tracks in a playlist, and doing "clear library and rescan everything", once finished I do "only rescan playlist". Then by repeatedly entering and exiting the playlist I if I enter it after they have been added, but before the clean up is done I was able to see the artwork, but when the entire process finishes they will all have been given the default artwork. Also if you add the album tag to one of these tracks, you will see that repeating the procedure will result in the track keeping it's artwork even after everything is finished. This confirms that the issue is specifically for tracks without the album tag. |
|
Here's a 2 min video https://youtu.be/coEiRDYg08A |
Adds a server setting to preserve existing embedded artwork when tracks do not have a valid album tag, rather than always clearing artwork references and thereby defaulting to album artwork 0.
Previously, during scanning, LMS would clear artwork references when a track had no album. This option allows users to keep track-level embedded artwork instead.
Default behavior remains unchanged.
I added the setting in "Performance" because there is another setting there in regards to album artwork caching. It can be moved elsewhere if a more appropriate location is preferred.
This is very useful for someone like me who has lots of songs with embedded artwork, but without an album tag and does not want to change the default tags. Here is my thread on the forums so please take a look for context. https://forums.lyrion.org/forum/user-forums/logitech-media-server/1828045-no-artwork-for-individual-songs-bug?view=thread