2014-08-10, 17:19
Still getting the same error trying to build the menus.
<shortcut>
<label>342</label>
<label2>Common Shortcut</label2>
<icon>DefaultMovies.png</icon>
<thumb />
<action>ActivateWindow(Videos,MovieTitles,return)</action>
<visible>False</visible>
</shortcut>
<shortcuts>
<shortcut>
<label>YouTube</label>
<label2>Common Shortcut</label2>
<defaultID>plugin.video.youtube</defaultID>
<icon>special://home/addons/plugin.video.youtube/icon.png</icon>
<thumb />
<action>ActivateWindow(10025,"plugin://plugin.video.youtube",return)</action>
<visible>System.HasAddon(plugin.video.youtube)</visible>
</shortcut>
<shortcut>
<label>Trailers</label>
<label2>Common Shortcut</label2>
<defaultID>plugin.video.itunes_trailers</defaultID>
<icon>special://home/addons/plugin.video.itunes_trailers/icon.png</icon>
<thumb />
<action>ActivateWindow(10025,"plugin://plugin.video.itunes_trailers",return)</action>
<visible>System.HasAddon(plugin.video.itunes_trailers)</visible>
</shortcut>
<shortcut>
<label>TWiT</label>
<label2>Music Add-On</label2>
<defaultID>plugin.video.twit</defaultID>
<icon>special://home/addons/plugin.video.twit/icon.png</icon>
<thumb />
<action>ActivateWindow(10501,"plugin://plugin.video.twit",return)</action>
<visible>System.HasAddon(plugin.video.twit)</visible>
</shortcut>
</shortcuts>
<item id="9">
<label>YouTube</label>
<label2>Common Shortcut</label2>
<icon>special://home/addons/plugin.video.youtube/icon.png</icon>
<thumb />
<property name="labelID">plugin.video.youtube</property>
<property name="defaultID">plugin.video.youtube</property>
<onclick>ActivateWindow(10025,"plugin://plugin.video.youtube",return)</onclick>
<visible>StringCompare(System.ProfileName,Master user)</visible>
<property name="submenuVisibility">plugin-video-youtube</property>
<property name="group">mainmenu</property>
<property name="hasSubmenu">True</property>
</item>
<item id="10">
<label>Trailers</label>
<label2>Common Shortcut</label2>
<icon>special://home/addons/plugin.video.itunes_trailers/icon.png</icon>
<thumb />
<property name="labelID">plugin.video.itunes_trailers</property>
<property name="defaultID">plugin.video.itunes_trailers</property>
<onclick>ActivateWindow(10025,"plugin://plugin.video.itunes_trailers",return)</onclick>
<visible>StringCompare(System.ProfileName,Master user)</visible>
<property name="submenuVisibility">plugin-video-itunes-trailers</property>
<property name="group">mainmenu</property>
</item>
<item id="11">
<label>TWiT</label>
<label2>Music Add-On</label2>
<icon>special://home/addons/plugin.video.twit/icon.png</icon>
<thumb />
<property name="labelID">plugin.video.twit</property>
<property name="defaultID">plugin.video.twit</property>
<onclick>ActivateWindow(10501,"plugin://plugin.video.twit",return)</onclick>
<visible>StringCompare(System.ProfileName,Master user)</visible>
<property name="submenuVisibility">plugin-video-twit</property>
<property name="group">mainmenu</property>
</item>
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: ('unexpected EOF while parsing', ('<string>', 0, 0, ''))
Traceback (most recent call last):
File "C:\Users\Kevin\AppData\Roaming\XBMC\addons\script.skinshortcuts\resources\lib\gui.py", line 1392, in onAction
self._save_shortcuts()
File "C:\Users\Kevin\AppData\Roaming\XBMC\addons\script.skinshortcuts\resources\lib\gui.py", line 493, in _save_shortcuts
datafunctions.UpgradeFunctions().upgrade_file( target )
File "C:\Users\Kevin\AppData\Roaming\XBMC\addons\script.skinshortcuts\resources\lib\datafunctions.py", line 807, in upgrade_file
shortcuts = eval( list )
SyntaxError: ('unexpected EOF while parsing', ('<string>', 0, 0, ''))
-->End of Python script error report<--
(2014-08-11, 21:02)nessus Wrote: I use the script only for the submenus and i am using .shortcuts files.
Is it possible to add visible conditions by default there ?. For example in TV Shows submenu the TV Guide entry (RunAddon(script.tv.show.next.aired,return) is still visible even if the library is empty.
(2014-08-11, 21:02)nessus Wrote: Also i noticed that if the Music Library is empty the default submenu's library entry's (Albums, Artists etc) are hidden (which is correct) but, when the Video Library is empty the Movies/TV Shows default submenu's library entry's (Genres, Actors etc) are still visible which is not useful because they lead to empty screens.
(2014-08-11, 21:02)nessus Wrote: By the way thanks for all the work that you put on this script and i can see now that is... huge !
(2014-08-11, 21:37)Unfledged Wrote: If it helps, I'm about given up waiting for translations to be updated from Transifex, so I'm going to run some stress tests and get the new version (with the xml file format) submitted to the repo sooner rather than later.