-
-
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 missing lyrics from tag when playing from musicdb url #7887
Conversation
jenkins build this please. |
This bypasses the database loading entirely so anything downloaded won't show. Can't we load from db as usual and do the extra loading in infomanager::setitem ? That way we won't hit every file on disk and only the ones actually played. |
This only happens when the infomanager requests additional info for he currently playing item. The block is only there to fetch the lyrics from the actual tag (not database). The already known tag information are not overwritten. Unless i read the code utterly wrong i think it's a valid fix. |
Fix is confirmed working. @Montellese comments? |
// since we're going to load additional tag information we | ||
// need to replace the library path with the actual file path. | ||
// this has to be done before creating the infotag loader. | ||
pItem->SetPath(pItem->GetMusicInfoTag()->GetURL()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
bd1284c
to
cbb9d7f
Compare
Updated. @Montellese, instead of modifying the actual item pointer i've changed it to create a new item based on the translated path. Also adjusted the comment. |
I'll just repeat my previous comment: |
It's not blindly using it. |
Ah right I didn't know about |
unique_ptr<IMusicInfoTagLoader> pLoader (CMusicInfoTagLoaderFactory::CreateLoader(*pItem)); | ||
// we load up the actual tag for this file in order to | ||
// fetch the lyrics and add it to the current music info tag | ||
CFileItemPtr item(new CFileItem(path, false)); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
cbb9d7f
to
0ba4726
Compare
Updated. |
Looks good. |
[music] fix missing lyrics from tag when playing from musicdb url
This fixes an issue where the lyrics from tags are not properly shown when playback was started from a
musicdb://
url.This is caused by using the wrong item path when calling the infotag loader. While at it, I've removed the dupe property handling and injected the lyrics to the current item info tag instead.
http://trac.kodi.tv/ticket/16216
@Montellese, @Paxxi