2012-03-20, 06:25
ID 13 is a built in function, try using a higher ID number.
(2012-03-20, 05:15)Balinus Wrote: Hello!
I've added support for Artwork Downloader in Shade and there's some strange behavior. I wouldn't be surprised the problem is my implementation but who knows..! The script works, but strangely.
Here's what happen : in the info screen (DialogVideoInfo.xml), I've added the following code :
PHP Code:<control type="button" id="13">
<description>Get Artwork</description>
<include>ButtonInfoDialogsCommonValues</include>
<onclick condition="Container.Content(tvshows)">XBMC.RunScript(script.artwork.downloader, mode=gui, mediatype=tvshow, medianame=$INFO[ListItem.TVShowTitle])</onclick>
<onclick condition="Container.Content(movies)">XBMC.RunScript(script.artwork.downloader, mode=gui, mediatype=movie, medianame=$INFO[ListItem.Title],mediapath=$INFO[ListItem.Path])</onclick>
<visible>[Container.Content(tvshows)|Container.Content(movies)]+system.hasaddon(script.artwork.downloader)</visible>
<label>Get Artwork</label>
</control>
Now, when I click Get Artwork for a movie, I have a dialog where i choose the movie, but then, it's just like the "information screen" is loaded again and the window where I could chose the type of artwork is behind the information screen. It's just when I escape from the information screen and go back to movie selection that the window to chose the type of media is shown.
Thanks for any help!
edit - Skin is available here in case someone would like to test it out : here or here