2013-06-07, 13:37
Marcos, playlisttype property is returned even in latest release (2.1.6 for the moment).
You can add some debug print in log to check :
randomandlastitems.py before :
randomandlastitems.py after :
Running my script with Aeon Nox 4.1.9 produce this output in LOG file :
13:33:08 T:4876 NOTICE: ('##### SmartPlaylist2.Type', 'Movie')
13:33:09 T:7124 NOTICE: ('##### SmartPlaylist1.Type', 'Movie')
13:33:10 T:6632 NOTICE: ('##### SmartPlaylist3.Type', 'Movie')
You can add some debug print in log to check :
randomandlastitems.py before :
Code:
def _setMusicProperties ( _artists, _albums, _songs ):
global PROPERTY
global WINDOW
global TYPE
# Set window Properties
_setProperty ( "%s.Artists" % ( PROPERTY ), str( _artists ) )
_setProperty ( "%s.Albums" % ( PROPERTY ), str( _albums ) )
_setProperty ( "%s.Songs" % ( PROPERTY ), str( _songs ) )
_setProperty ( "%s.Type" % ( PROPERTY ), TYPE )
def _setVideoProperties ( _total, _watched, _unwatched ):
global PROPERTY
global WINDOW
global TYPE
# Set window Properties
_setProperty ( "%s.Count" % ( PROPERTY ), str( _total ) )
_setProperty ( "%s.Watched" % ( PROPERTY ), str( _watched ) )
_setProperty ( "%s.Unwatched" % ( PROPERTY ), str( _unwatched ) )
_setProperty ( "%s.Type" % ( PROPERTY ), TYPE )
randomandlastitems.py after :
Code:
def _setMusicProperties ( _artists, _albums, _songs ):
global PROPERTY
global WINDOW
global TYPE
# Set window Properties
_setProperty ( "%s.Artists" % ( PROPERTY ), str( _artists ) )
_setProperty ( "%s.Albums" % ( PROPERTY ), str( _albums ) )
_setProperty ( "%s.Songs" % ( PROPERTY ), str( _songs ) )
_setProperty ( "%s.Type" % ( PROPERTY ), TYPE )
print ( "##### %s.Type" % ( PROPERTY ), TYPE )
def _setVideoProperties ( _total, _watched, _unwatched ):
global PROPERTY
global WINDOW
global TYPE
# Set window Properties
_setProperty ( "%s.Count" % ( PROPERTY ), str( _total ) )
_setProperty ( "%s.Watched" % ( PROPERTY ), str( _watched ) )
_setProperty ( "%s.Unwatched" % ( PROPERTY ), str( _unwatched ) )
_setProperty ( "%s.Type" % ( PROPERTY ), TYPE )
print ( "##### %s.Type" % ( PROPERTY ), TYPE )
Running my script with Aeon Nox 4.1.9 produce this output in LOG file :
13:33:08 T:4876 NOTICE: ('##### SmartPlaylist2.Type', 'Movie')
13:33:09 T:7124 NOTICE: ('##### SmartPlaylist1.Type', 'Movie')
13:33:10 T:6632 NOTICE: ('##### SmartPlaylist3.Type', 'Movie')