The branch, eden-pre has been updated
       via  385b5f1fa470ac46bead400d5d5e2e1a45cb4370 (commit)
      from  34318e34b796ae60eb582a5beb51980f1ffb3448 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=385b5f1fa470ac46bead400d5d5e2e1a45cb4370

commit 385b5f1fa470ac46bead400d5d5e2e1a45cb4370
Author: spiff <[email protected]>
Date:   Mon Feb 6 16:21:50 2012 +0100

    [plugin.video.svtplay] updated to version 2.0.1

diff --git a/plugin.video.svtplay/addon.xml b/plugin.video.svtplay/addon.xml
index f0344ab..9b266d9 100644
--- a/plugin.video.svtplay/addon.xml
+++ b/plugin.video.svtplay/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.svtplay"
        name="SVT Play"
-       version="2.0.0"
+       version="2.0.1"
        provider-name="nilzen">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
@@ -13,7 +13,8 @@
     <summary lang="en">Watch content from SVT Play.</summary>
     <summary lang="sv">Titta på innehåll från SVT Play.</summary>
     <description lang="en">With this addon you can stream content from SVT 
Play (svtplay.se).</description>
-       <description lang="sv">Med denna addon kan du strömma innehåll från 
SVT Play (svtplay.se).</description>
+    <description lang="sv">Med denna addon kan du strömma innehåll från SVT 
Play (svtplay.se).</description>
+    <disclaimer>Some parts of this addon may not be legal in your country of 
residence - please check with your local laws before installing.</disclaimer>
     <platform>all</platform>
   </extension>
 </addon>
diff --git a/plugin.video.svtplay/changelog.txt 
b/plugin.video.svtplay/changelog.txt
index d291c06..520dafe 100644
--- a/plugin.video.svtplay/changelog.txt
+++ b/plugin.video.svtplay/changelog.txt
@@ -1,3 +1,12 @@
+Version 2.0.1
+-------------
+- Added swf verification
+- Fixed unicode encoding
+
+Version 2.0.0
+-------------
+- Bumped versions for Eden
+
 Version 1.0.4
 -------------
 - Improved handling of subtitles (by kokangit, thx to elupus)
diff --git a/plugin.video.svtplay/default.py b/plugin.video.svtplay/default.py
index c0a8295..845e1a8 100644
--- a/plugin.video.svtplay/default.py
+++ b/plugin.video.svtplay/default.py
@@ -184,7 +184,7 @@ def teaser_list(ids="", url="", offset=1, list_size=0):
                
                        media = get_media_content(item)
                        thumb = get_media_thumbnail(item)
-                       title = get_node_value(item, "title")
+                       title = unicode(get_node_value(item, 
"title")).encode('utf-8')
                        id = get_node_value(item, "titleId", NS_PLAYRSS)
 
                        params = { "mode": MODE_VIDEO_LIST, "ids": id }
@@ -308,9 +308,15 @@ def add_directory_item(name, params={}, thumbnail=None, 
isFolder=True,
                url = sys.argv[0] + '?' + urllib.urlencode(params)
        else:
                url = params["url"]
+
+               if url.find('rtmp') == 0:
+                       url += " 
swfUrl=http://svtplay.se/flash/svtplayer-2011.18.swf swfVfy=1"
+               
                if not infoLabels:
                        infoLabels = { "Title": name }
+               
                li.setInfo(type="Video", infoLabels=infoLabels)
+               
                #Check if it's a live stream or if debug is enabled
                if params.has_key('live'):
                        li.setProperty("IsLive", "true")

-----------------------------------------------------------------------

Summary of changes:
 plugin.video.svtplay/addon.xml     |    5 +++--
 plugin.video.svtplay/changelog.txt |    9 +++++++++
 plugin.video.svtplay/default.py    |    8 +++++++-
 3 files changed, 19 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to