2015-11-10, 10:13
Hi,
First, let me say I know how to do it by clicking buttons. In the default skin. That's not why I am here.
I am brewing on a skin that has several panels and list - filled with database items; genres, artists, albums and songs - all together in a single window, all filled by plugins, and all actions handled by "onclick" - pretty much nothing is left for Kodi to handle.
I suddenly realize I have no idea how to "call" the music scraper to do it's magic on a certain album (or any other item, be that artist or movie or anything in the database really)?
I know that though code "button 6" (I think it's 6) in dialogmusic.xml can be "activated" (and that at least in some skins runs the album scraper, I think..), but how do I tell xbmc/kodi what exactly it is supposed to scrape?
Is it simply the selected item, in any container? If so, what information must the item/panel/container have? (I fill them all dynamically so they don't really have any information besides the thumbnail). Oh, and I will quite possibly end up with panels with mixed contents (music/video/whatever) any day soon.. then what?
If the solution is to somehow activate the scraper addon from (another) python script that would be ok by me. But how?
It is quite possible that I am overthinking this, so please - any help is appreciated
Thanks,
Torben
(This is a copy of a question I had in Meta-data but nobody knew anything)
First, let me say I know how to do it by clicking buttons. In the default skin. That's not why I am here.
I am brewing on a skin that has several panels and list - filled with database items; genres, artists, albums and songs - all together in a single window, all filled by plugins, and all actions handled by "onclick" - pretty much nothing is left for Kodi to handle.
I suddenly realize I have no idea how to "call" the music scraper to do it's magic on a certain album (or any other item, be that artist or movie or anything in the database really)?
I know that though code "button 6" (I think it's 6) in dialogmusic.xml can be "activated" (and that at least in some skins runs the album scraper, I think..), but how do I tell xbmc/kodi what exactly it is supposed to scrape?
Is it simply the selected item, in any container? If so, what information must the item/panel/container have? (I fill them all dynamically so they don't really have any information besides the thumbnail). Oh, and I will quite possibly end up with panels with mixed contents (music/video/whatever) any day soon.. then what?
If the solution is to somehow activate the scraper addon from (another) python script that would be ok by me. But how?
It is quite possible that I am overthinking this, so please - any help is appreciated
Thanks,
Torben
(This is a copy of a question I had in Meta-data but nobody knew anything)