2018-03-02, 19:56
Ryan I will continue our discussion, I just have a quick skin related question
Anyone expecting Container.Art to work for Song/Album/Artist Info dialog?
I convinced myself I had it working for Song Info Dalog, only to discover that actually it is just picking up the art from the underlying song on the library window. Happens to be the same, so hard to spot an issue.
I know that skins use Container.Content on Song/Album/Artist Info dialog. That also works by picking up what is on the library window despite what looks like attempts in the code to get it from the dialog. It would create odd effects when bringing up the album info from that of a song (as lib window is songs). Anyway I have got that working from the dialog item now.
If Container.Art is wanted too for those dialogs I will need to make deeper changes to GUIInfoManager, to stop it always looking at the music library window. The art is in ListItem.Art on these dialogs, so is the duplication needed?
Then again ListItem.DBTYPE could be used instead of Container.Content, so it all seems rather confusing as an interface.
______
EDIT: it seems that https://forum.kodi.tv/showthread.php?tid=299107 has the answer
Skins should be using ListItem.DBTYPE
Anyone expecting Container.Art to work for Song/Album/Artist Info dialog?
I convinced myself I had it working for Song Info Dalog, only to discover that actually it is just picking up the art from the underlying song on the library window. Happens to be the same, so hard to spot an issue.
I know that skins use Container.Content on Song/Album/Artist Info dialog. That also works by picking up what is on the library window despite what looks like attempts in the code to get it from the dialog. It would create odd effects when bringing up the album info from that of a song (as lib window is songs). Anyway I have got that working from the dialog item now.
If Container.Art is wanted too for those dialogs I will need to make deeper changes to GUIInfoManager, to stop it always looking at the music library window. The art is in ListItem.Art on these dialogs, so is the duplication needed?
Then again ListItem.DBTYPE could be used instead of Container.Content, so it all seems rather confusing as an interface.
______
EDIT: it seems that https://forum.kodi.tv/showthread.php?tid=299107 has the answer
Skins should be using ListItem.DBTYPE