-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Incorrect metadata (caching?) #972
Comments
Thanks for the report. Could you let me have the configuration string please? The string that is returned by:
|
3.3.3-OpenSSL-Avahi-ALSA-stdout-pipe-metadata-mpris-sysconfdir:/etc |
Thanks. I'll see if I can reproduce the problem. |
If you don't have the Daft Punk album, try 2 songs from the one album with 2 songs: first one from "artist feat. artist 2" and second one "artist". |
It would be really interesting to see what's coming from the music player itself, and the best way to do that would be to build the Shairport Sync Metadata Reader. If you could try it, it would be much simpler, for me at least, than trying to guess which part of the metadata was used to hold the artist information – I'd say this depends on whether the album is a compilation or not (I guess it isn't), whether an "album artist" field is used or not and maybe other variables. Would that be possible? You would not have to recompile Shairport Sync itself, just build the metadata reader and hook it up to the metadata pipe. |
I don't have the metadata reader on the system and it will be a bit complicated to add it as this is a buildroot-based system. How can I dump the data into a file? shairport-sync is compiled with the metadata option, but I can't find a configuration option to configure a pipe or file where this will be send to. |
Ah, I see. Let me do a quick check and give you exact instructions. By default, the pipe is |
Actually it’s going to take a couple of days to get to this, I’m afraid. Apologies for the delay. |
Okay, what works for me is to go to the
Then [re]start |
Unfortunately in my setup it didn't create a pipe and it doesn't write to the /tmp/shairport-sync file even if I create it. However, it is compiles with the "--with-metadata" option: Are there any other configuration options required to log metadata to this pipe/file? |
Yes indeed, you should enable it in the configuration file, which is by default at
|
Find attached the output to the metadata file for 4 songs from this album. |
Thanks. This is what that metadata looks like when processed by shairport-sync-metadata-reader with spaces added before and after each piece of metadata (bracketed by
|
Let me see if I can simulate that here. |
The incorrect title is this: "ssnc" "mden": "2661523981". Looks like the metadata are correct here, just shown incorrectly in MPRIS |
Exactly. Thanks for your sleuthing. I'll see what I can figure out now. |
I see that these build instructions include the configuration option
Does it happen to be installed on your system? If so, it would offer more evidence as to what is coming out of Shairport Sync's MPRIS interface on the D-Bus. |
I might have found something. I’ll push an update tonight or tomorrow. |
Okay, I found a silly bug which I think could account for the behaviour you experienced – it was a length-limited string comparison which didn't check that the overall strings were the same length. I've fixed it and pushed an update out in the |
Checked out the latest commit from the development branch and built a new version based on this. Looks like it got worse now ;-) I can only get metadata from the first song. After this , it always reports these metadata now. |
Yikes, that’s not what I expected. Let me check back. |
Apologies – that was one of those "it's-so-simple-it-doesn't-need-to-be-tested" fixes. There's an updated and tested-for-sanity version on the |
I originally ran into this and inspired the opening of the issue. Testing the new version, I'm happy to report that it appears to be fixed and artist names are updating correctly through MPRIS. Thank you for your swift action on this 🙂 |
Thanks Tuomas. Apologies for the glitch and thanks for reporting the issue. |
Hi Mike, I think, we can close this. Thanks for the help! |
Great, thanks! |
When playing songs from the same album, artist name isn't always updated. Sometimes, it just uses the artist name from the previous song
An example is the album "Random access memories" from Daft Punk.
Song 7: Touch (feat. Paul Williams)
Song 8: Get Lucky (feat. Pharell Williams)
Song 9 Beyond should be just "Daft Punk", but it still display "feat. Pharell Williams":
Interestingly when playing a song from another album before this, it displays the correct data:
This looks like a (rather strange) caching issue. It looks like artist name won't be changed if the new artist name matches the beginning of the artist name of the previous song.
The text was updated successfully, but these errors were encountered: