The branch, dharma has been updated
via 4e8cacac4ea25c84459d00b8947d108994651880 (commit)
from 0fa13ea2f187a6967f928b0511f12ad300c57fd5 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=4e8cacac4ea25c84459d00b8947d108994651880
commit 4e8cacac4ea25c84459d00b8947d108994651880
Author: amet <[email protected]>
Date: Fri Sep 23 15:23:35 2011 +0400
[script.xbmc.subtitles] -v 2.5.10
- 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 31c6eb7..8866e9e 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.5.9"
+ version="2.5.10"
provider-name="Amet, mr_blobby">
<requires>
<import addon="xbmc.python" version="1.0"/>
diff --git a/script.xbmc.subtitles/changelog.txt
b/script.xbmc.subtitles/changelog.txt
index 06e38d0..b631a06 100644
--- a/script.xbmc.subtitles/changelog.txt
+++ b/script.xbmc.subtitles/changelog.txt
@@ -1,3 +1,6 @@
+2.5.10
+- fixed: error due to some BetaSeries API change, thx darknao
+
2.5.9
- 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 5d7722d..6bde8fd 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 ;)
@@ -165,8 +167,10 @@ 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':
twotofull(language),'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 | 8 ++++++--
3 files changed, 10 insertions(+), 3 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