Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed: fire the OnUpdate announce after fetching the artwork - fixes …
…empty recently-added thumbs if the library is updating while XBMC is on the home screen
- Loading branch information
1 parent
4cd482d
commit 227d928
Showing
2 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
227d928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow that was quick, wish I'd reported it sooner.
Thanks.
227d928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to say I don't like this for three reasons:
I (once again) vote for not "abusing" CAnnouncementManager for this kind of XBMC internal update and use a proper GUI_MSG_FOO as it is done with GUI_MSG_UPDATE_ITEM or any of the other GUI messages and revert this so that the JSON-RPC announcements work as they were intended to.
227d928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but the way we did it before was just wrong as the announce was triggered too early. I've left out the type intentionally as I thought the AnnounceManager is handling this (https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/AnnouncementManager.cpp#L85) based on the item.
227d928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running the video scanner it was triggered too early yes. The AnnouncementManager can only add the type automatically if you provide the CFileItemPtr of the newly added item with the call to Announce() which is not the case the way it is now. If you can do that I won't be against this change (although I still think it's an abuse of CAnnouncementManager but maybe I'm alone on this).
227d928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in f30aef5. For after Eden we have to come up with a solution that fits.