The branch, frodo has been updated
       via  d4a6c6805e9e86a5609c4fa56fc7a525a7792f13 (commit)
      from  cde648a3650f0334b1351053d7c8832790abb579 (commit)

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

commit d4a6c6805e9e86a5609c4fa56fc7a525a7792f13
Author: Martijn Kaijser <[email protected]>
Date:   Sun Aug 31 14:27:57 2014 +0200

    [plugin.video.manoto] 1.1.0

diff --git a/plugin.video.manoto/addon.xml b/plugin.video.manoto/addon.xml
index 07da202..cc9a326 100755
--- a/plugin.video.manoto/addon.xml
+++ b/plugin.video.manoto/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.manoto"
        name="Manoto TV"
-       version="1.0.9"
+       version="1.1.0"
        provider-name="babak">
   <requires>
     <import addon="xbmc.python" version="2.1.0"/>
diff --git a/plugin.video.manoto/default.py b/plugin.video.manoto/default.py
index a3d8193..9564464 100644
--- a/plugin.video.manoto/default.py
+++ b/plugin.video.manoto/default.py
@@ -56,10 +56,10 @@ def getStreamsFromPlayList(playlist):
                        continue
             
                # is this a description or a playlist
-               idx = string.find(line, "BANDWIDTH=")
-               if idx > -1:
+               m = re.search("BANDWIDTH=(\d+)", line)
+               if m:
                        # handle the description
-                       bandwidth = line[idx + 10:len(line)].strip()
+                       bandwidth = m.group(1)
                elif len(line) > 0 and len(bandwidth) > 0:
                        # add the playlist
                        streams[bandwidth] = (("" if 
line.lower().startswith("http") else prefix) + line).strip()

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

Summary of changes:
 plugin.video.manoto/addon.xml  |    2 +-
 plugin.video.manoto/default.py |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to