2013-01-02, 20:31
(2013-01-02, 10:54)phil65 Wrote:Phil, PROPERTY is still in custom_1125_DialogVideoPlaylists.xml :(2013-01-02, 10:49)mikebzh44 Wrote: Martijn.
Aeon Nox 4.0 will be available soon on official repository and Phil call script this way :
Code:RunScript(script.randomandlastitems, type=Movie, playlist=special://profile/playlists/video/Parents.xsp, method=Latest, limit=10, unwatched=False, resume=False, PROPERTY=SmartPlaylist1)
But if script now require property= parameter, widgets skin will be broken :S
Is there a smart way to handle this case in python ( uppercase ? lowercase ? double test ?) ?
fixed that, ronie will pull with fix included.
Code:
<onunload condition="!IsEmpty(Window(home).Property(PlaylistSlot))">Skin.SetString($INFO[Window(home).Property(PlaylistSlot)].Call,RunScript(script.randomandlastitems, type=$INFO[Window(home).Property(Type)], playlist=$INFO[Window(home).Property(Playlist.Path)], method=$INFO[Window(home).Property(Method)], limit=10, unwatched=$INFO[Window(home).Property(Unwatched)], resume=$INFO[Window(home).Property(Resume)], PROPERTY=$INFO[Window(home).Property(PlaylistSlot)]))</onunload>
<onunload>RunScript(script.randomandlastitems, type=$INFO[Window(home).Property(Type)], playlist=$INFO[Window(home).Property(Playlist.Path)], method=$INFO[Window(home).Property(Method)], limit=10, unwatched=$INFO[Window(home).Property(Unwatched)], resume=$INFO[Window(home).Property(Resume)], PROPERTY=$INFO[Window(home).Property(PlaylistSlot)])</onunload>