Skip to content

Commit

Permalink
Merge pull request #61 from marcelveldt/master
Browse files Browse the repository at this point in the history
skinhelper widgets + fixed scripts not visible in program addons listing
  • Loading branch information
BobCratchett committed Sep 4, 2015
2 parents a49b45c + 10defce commit b5f3e8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 6 additions & 2 deletions resources/lib/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,6 @@ def addons( self ):
if item['enabled'] == True:
path = "RunAddOn(" + item['addonid'].encode('utf-8') + ")"
action = None

thumb = "DefaultAddon.png"
if item['thumbnail'] != "":
thumb = item[ 'thumbnail' ]
Expand Down Expand Up @@ -1365,7 +1364,12 @@ def hasPluginEntryPoint( self, path ):
if provides is None:
return None
return provides.text.split( " " )

elif "point" in extension.attrib and extension.attrib.get( "point" ) == "xbmc.python.script":
# Script entry points should be treated as executable
provides = extension.find( "provides" )
if provides is None:
return None
return provides.text.split( " " )

except:
return None
Expand Down
9 changes: 8 additions & 1 deletion resources/shortcuts/overrides.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
</flatgroupings>

<groupings>

<!-- script.skin.helper.service smart shortcuts -->
<shortcut label="$ADDON[script.skin.helper.service 32062]" type="32010" condition="System.HasAddon(script.skin.helper.service)">||BROWSE||script.skin.helper.service/?action=smartshortcuts</shortcut>

<node label="32029">
<content>common</content>
</node>
Expand Down Expand Up @@ -164,7 +168,10 @@
</groupings>

<widget-groupings>
<content>widgets</content>
<!-- script.skin.helper.service default widgets -->
<shortcut label="$ADDON[script.skin.helper.service 32063]" type="32010" condition="System.HasAddon(script.skin.helper.service)">||BROWSE||script.skin.helper.service/?action=widgets&amp;path=skinplaylists,librarydataprovider,scriptwidgets,extendedinfo,smartshortcuts,pvr,smartishwidgets</shortcut>

<content>widgets</content>
<node label="32030">
<content>video</content>
<node label="32040">
Expand Down

0 comments on commit b5f3e8e

Please sign in to comment.