The branch, eden-pre has been updated
       via  7c57afdbfe1d59d652e3683d0674b364ab84975c (commit)
      from  e67dfb2b552335419189ee9bdd71765deb8340f3 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=7c57afdbfe1d59d652e3683d0674b364ab84975c

commit 7c57afdbfe1d59d652e3683d0674b364ab84975c
Author: amet <[email protected]>
Date:   Fri Sep 23 15:25:47 2011 +0400

    [script.xbmc.subtitles] -v 2.9.22
    
    - fixed: error due to some BetaSeries API change, thx darknao

diff --git a/script.xbmc.subtitles/addon.xml b/script.xbmc.subtitles/addon.xml
index 83e5493..ff877b3 100644
--- a/script.xbmc.subtitles/addon.xml
+++ b/script.xbmc.subtitles/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.xbmc.subtitles"
        name="XBMC Subtitles"
-       version="2.9.21"
+       version="2.9.22"
        provider-name="Amet, mr_blobby">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
diff --git a/script.xbmc.subtitles/changelog.txt 
b/script.xbmc.subtitles/changelog.txt
index faecefa..a5dff9b 100644
--- a/script.xbmc.subtitles/changelog.txt
+++ b/script.xbmc.subtitles/changelog.txt
@@ -1,3 +1,6 @@
+2.9.22
+- fixed: error due to some BetaSeries API change, thx darknao
+
 2.9.21
 - fixed: podnapisi download
 - added: Napisy24.pl, thx mrto
diff --git a/script.xbmc.subtitles/resources/lib/services/BetaSeries/service.py 
b/script.xbmc.subtitles/resources/lib/services/BetaSeries/service.py
index 3b59ad5..b14771f 100644
--- a/script.xbmc.subtitles/resources/lib/services/BetaSeries/service.py
+++ b/script.xbmc.subtitles/resources/lib/services/BetaSeries/service.py
@@ -100,7 +100,7 @@ def search_subtitles( file_original_path, title, tvshow, 
year, season, episode,
                 
                 #time.sleep(1)
                 subtitles = dom.getElementsByTagName('subtitle')
-
+                log( __name__ , "nb sub found: '%s'" % (len(subtitles)))
                 for subtitle in subtitles:
                     url = subtitle.getElementsByTagName('url')[0].childNodes[0]
                     url = url.nodeValue
@@ -124,7 +124,9 @@ def search_subtitles( file_original_path, title, tvshow, 
year, season, episode,
                             items = content.getElementsByTagName('item')
 
                             for item in items:
+                                if len(item.childNodes) < 1 : continue
                                 subfile = item.childNodes[0].nodeValue
+                                
 
                                 if os.path.splitext(subfile)[1] == '.zip': 
continue # Not supported yet ;)
                             
@@ -164,9 +166,11 @@ def search_subtitles( file_original_path, title, tvshow, 
year, season, episode,
 
                     else:
                         #log( __name__ , "sub found ('%s')" % (filename))
+                        
                         subtitles_list.append({'filename': filename,'link': 
url,'language_name': 
languageTranslate(language,2,0),'language_id':"0",'language_flag':'flags/' + 
language + '.gif',"rating":rating,"sync": False})
-
-            except:
+                    
+            except Exception, inst:
+                log( __name__ , " Error: %s" % (inst))
                 return subtitles_list, "", msg #standard output
 
     return subtitles_list, "", msg #standard output

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

Summary of changes:
 script.xbmc.subtitles/addon.xml                    |    2 +-
 script.xbmc.subtitles/changelog.txt                |    3 +++
 .../resources/lib/services/BetaSeries/service.py   |   10 +++++++---
 3 files changed, 11 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to