-
Notifications
You must be signed in to change notification settings - Fork 318
Existing Album Artist changes to VA in new & changed scan #1341
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
Comments
Could you please provide the necessary description and information needed to reproduce and understand the problem here? Maybe ask ChatGPT to summarize the linked discussion 😁. |
Well, I gave it a try:
|
Haha... told it about the name change. To which it responded:
|
That's horribly confusing. Perhaps logically correct, but it just goes to show there's no "I" in "AI", just blind textual analysis. Maybe it works for some things... My summary:
The cause is clear: the code I quoted above only runs for changed tracks, and undoes what was previously done in Schema.pm, updating the albums row again. |
I run a few tests with @frank1969b's "Carousel" album. The findings are slightly confusing:
Line 2183 in dc10f66
Based on the last comment in the code snippet you posted I disabled that block for the scanner - which fixed our case. But I'm not sure about the consequences for other cases... Eg. I used the same album but removed the I doubt we'll be able to fix all these cases without major work. In fact I believe that due to the complexity we already have issues which were created by fixing something else, but not consistently etc. One issue I'm seeing with the compilation handling is metadata vs. our own logic. In particular if a tagger would not explicitly set TL;DR The following change "fixes" this issue for me, but would still not fix the case where an album had the compilation flag set, and we remove the flag without a full wipe & rescan: diff --git a/Slim/Utils/Scanner/Local.pm b/Slim/Utils/Scanner/Local.pm
index 602fde279..5e4c785aa 100644
--- a/Slim/Utils/Scanner/Local.pm
+++ b/Slim/Utils/Scanner/Local.pm
@@ -1110,7 +1110,7 @@ sub changed {
}
# Reset compilation status as it may have changed
- if ( $album ) {
+ if ( $album && !main::SCANNER ) {
# XXX no longer works after album code ported to native DBI
$album->compilation(undef);
$album->update; It's based on the comment which mentions auto-rescan mode, which would be run in the server process vs. regular scan run in an external process. Why on earth would Github not recognize @frank1969b as a Github user while typing the name?... |
I mean't potentially call
You mean
I don't think that would be a good idea, as that looks like the bit of code which sets albums.compilation if there's no COMPILATION tag in the track. which might be why it's called from
Yes, could be the auto-setting of albums.compilation in the absence of a COMPILATION tag which we'd lose. I'll look into this further. My gut feeling is that this should already be done in I agree that this is complicated and if we change it at all it should be for 9.1 only. |
Attached is a spreadsheet containing before and after test results (with the change I suggested at the top - remove all the code in that snippet). I think I've covered all scenarios when rescanning with null or unrelated tag changes. My worry about bypassing automatic determination of compilations when there is no Compilation tag was unfounded. This is not the end of it though, I still need to test actual artist/album artist tag changes between the new and changed scans (and deleted tracks) because then we might actually want to change a compilation to not-a-compilation or vice versa. But this is enough for today, I think. |
Copy/pasted the file's content to a tab-to-markdown converter:
Notes:
|
Nice! But need to edit the notes as they're referring to spreadsheet rows/cells. |
Analysis for https://forums.lyrion.org/forum/developer-forums/developers/1756257-albums-contributor-on-compilations-is-always-set-to-va-if-albumartist-is-changed
Looks like the problem is here:
slimserver/Slim/Utils/Scanner/Local.pm
Lines 1112 to 1120 in ef5c4b9
As far as I can tell,
Slim::Schema::_createOrUpdateAlbum
has already calledmergeSingleVAAlbum
where neccessary and done the work, so I would propose removing the above code.Thoughts?
The text was updated successfully, but these errors were encountered: