2016-07-04, 18:27
Hi Guys,
while removing some old windows names and cleaning up my views code I came across a interesting problem that I think could do with a little kicking around.
Basically is the Musicvideo node of the library a Music or Video library node and what is the way other handled this in their code?
If you call the musicvideo nodes from the the music library using the following code. Kodi uses MyMusicNav.xml to display the contents of the musicvideo/title node and allows me to shows the artist of the Music video from my music views.
If on the other hand I use the following codeKodi uses MyVideoNav.xml to display the contents of musicvideo/title node and does NOT give me access to the artist to display.
Now I have made an arbitrary decision to use the Music library form of the window call so that I can display the artist name and because the cover artwork works better for music video using the music library views code. This works OK except if the user is currently in the Video library nodes and navigates to musicvideos thru the Video library tree. In this case Kodi uses its own internal call to the musicvideo (the Video call in this case) and as a result uses the views code for the Video library and I lose the artist name when I try to display information on the musicvideo. Also it just occurred to me that if I use the Music library form, I don't have access to the MPAA rating, so I can't display the video classification of the music video. So there are advanatages and disadvantaged to using either form.
So as skin writers should we be asking the code devs to provide the artist name and classification rating no matter where the music video node is called from, or should we ask that the internal call to this node be made a shortcut to either the Music or Video library, but not both?
Obviously it is too late to do anything about this for Jarvis, but it would be nice to pin something down before Krypton hits beta. So what are your thoughts on this?
Wyrm (AppTV)
while removing some old windows names and cleaning up my views code I came across a interesting problem that I think could do with a little kicking around.
Basically is the Musicvideo node of the library a Music or Video library node and what is the way other handled this in their code?
If you call the musicvideo nodes from the the music library using the following code.
PHP Code:
ActivateWindow(Music,videodb://musicvideos/titles/,return)
If on the other hand I use the following code
PHP Code:
ActivateWindow(Video,videodb://musicvideos/titles/,return)
Now I have made an arbitrary decision to use the Music library form of the window call so that I can display the artist name and because the cover artwork works better for music video using the music library views code. This works OK except if the user is currently in the Video library nodes and navigates to musicvideos thru the Video library tree. In this case Kodi uses its own internal call to the musicvideo (the Video call in this case) and as a result uses the views code for the Video library and I lose the artist name when I try to display information on the musicvideo. Also it just occurred to me that if I use the Music library form, I don't have access to the MPAA rating, so I can't display the video classification of the music video. So there are advanatages and disadvantaged to using either form.
So as skin writers should we be asking the code devs to provide the artist name and classification rating no matter where the music video node is called from, or should we ask that the internal call to this node be made a shortcut to either the Music or Video library, but not both?
Obviously it is too late to do anything about this for Jarvis, but it would be nice to pin something down before Krypton hits beta. So what are your thoughts on this?
Wyrm (AppTV)