Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 6 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 4 deletions.
  1. +2 −2 addon.xml
  2. +4 −0 changelog.txt
  3. +5 −2 default.py
View
4 addon.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.svtplay"
name="SVT Play"
- version="1.0.4"
+ version="2.0.0"
provider-name="nilzen">
<requires>
- <import addon="xbmc.python" version="1.0"/>
+ <import addon="xbmc.python" version="2.0"/>
</requires>
<extension point="xbmc.python.pluginsource" library="default.py">
<provides>video</provides>
View
4 changelog.txt
@@ -1,3 +1,7 @@
+Version 2.0.0
+-------------
+- Bumped versions for Eden
+
Version 1.0.4
-------------
- Improved handling of subtitles (by kokangit, thx to elupus)
View
7 default.py
@@ -298,6 +298,7 @@ def get_media_subtitles(node):
def add_directory_item(name, params={}, thumbnail=None, isFolder=True,
infoLabels=None, subtitles=None):
+ cm = []
li = xbmcgui.ListItem(name)
if not thumbnail is None:
@@ -314,12 +315,14 @@ def add_directory_item(name, params={}, thumbnail=None, isFolder=True,
if params.has_key('live'):
li.setProperty("IsLive", "true")
elif params.has_key('url_debug'):
- cm = []
cm_url = sys.argv[0] + '?' + "url=" + params["url_debug"] + "&mode=debug" + "&name=" + urllib.quote_plus(name.encode('utf_8'))
cm.append((SETTINGS_CONTEXT_MENU , "XBMC.RunPlugin(%s)" % (cm_url)))
- li.addContextMenuItems( cm, replaceItems=False )
+
add_subtitles(li, subtitles)
+ #cm.append(("Favvo" , "XBMC.RunPlugin(%s)" % ("foo")))
+ li.addContextMenuItems( cm, replaceItems=False )
+
return xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=url, listitem=li, isFolder=isFolder)
def add_subtitles(listItem, subtitles):

No commit comments for this range

Something went wrong with that request. Please try again.