Skip to content

Commit

Permalink
Fixed an exception when the plugin version is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
rfletcher committed Apr 2, 2010
1 parent 0594dc8 commit c5096c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundle/Contents/Code/Classes/Menus.py
Expand Up @@ -38,7 +38,7 @@ def __init__(self, **kwargs):
"""
defaults = {
'art': R('art-default.jpg'),
'title1': C["PLUGIN_NAME"] + ((" (" + C["PLUGIN_VERSION"] + ")") if C["VERSION_IN_PLUGIN_NAME"] else ""),
'title1': C["PLUGIN_NAME"] + ((" (" + str(C["PLUGIN_VERSION"]) + ")") if C["VERSION_IN_PLUGIN_NAME"] else ""),
'viewGroup': "List"
}
defaults.update(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion bundle/Contents/Code/__init__.py
Expand Up @@ -15,7 +15,7 @@ def Start():
# Prefetch some content
# HTTP.PreCache(_GameListURL(), cacheTime=C["GAME_CACHE_TTL"])

Plugin.AddPrefixHandler(C["PLUGIN_PREFIX"], MainMenu, C["PLUGIN_NAME"] + ((" (" + C["PLUGIN_VERSION"] + ")") if C["VERSION_IN_PLUGIN_NAME"] else ""), 'icon-default.png', 'art-default.jpg')
Plugin.AddPrefixHandler(C["PLUGIN_PREFIX"], MainMenu, C["PLUGIN_NAME"] + ((" (" + str(C["PLUGIN_VERSION"]) + ")") if C["VERSION_IN_PLUGIN_NAME"] else ""), 'icon-default.png', 'art-default.jpg')
Plugin.AddViewGroup("List", viewMode="List", mediaType="items")
Plugin.AddViewGroup("Details", viewMode="InfoList", mediaType="items")

Expand Down

0 comments on commit c5096c9

Please sign in to comment.