The branch, dharma has been updated
       via  295aaf426b7e964244d5552131aa72f0103da68c (commit)
      from  c207b0ce363a9952e0006d37a6d7dc73993331fc (commit)

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

commit 295aaf426b7e964244d5552131aa72f0103da68c
Author: amet <[email protected]>
Date:   Sat Dec 3 20:30:54 2011 +0400

    [script.xbmc.subtitles] -v2.5.15
    
    - fixed: Subcenter, thx orivar

diff --git a/script.xbmc.subtitles/addon.xml b/script.xbmc.subtitles/addon.xml
index 865d476..53f5dcc 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.14"
+       version="2.5.15"
        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 512eec2..a685d01 100644
--- a/script.xbmc.subtitles/changelog.txt
+++ b/script.xbmc.subtitles/changelog.txt
@@ -1,3 +1,6 @@
+2.5.15
+- fixed: Subcenter, thx orivar
+
 2.5.14
 - fixed searching for some tvshows in Titulky.com service, thx Libor
 
diff --git a/script.xbmc.subtitles/resources/lib/services/Subscenter/service.py 
b/script.xbmc.subtitles/resources/lib/services/Subscenter/service.py
index 82e2415..7473991 100644
--- a/script.xbmc.subtitles/resources/lib/services/Subscenter/service.py
+++ b/script.xbmc.subtitles/resources/lib/services/Subscenter/service.py
@@ -2,10 +2,11 @@
 
 
#===============================================================================
 # Subscenter.org subtitles service.
-# Version: 1.1
+# Version: 1.2
 #
 # Change log:
 # 1.1 - Fixed downloading of non-Hebrew subtitles.
+# 1.2 - Added key field for download URL
 #
 # Created by: Ori Varon
 
#===============================================================================
@@ -86,7 +87,8 @@ def 
getAllSubtitles(subtitlePageID,languageList,subtitlesList):
                             'filename': 
foundSubtitles[language][translator][quality][rating]["subtitle_version"],
                             'subtitle_id': 
foundSubtitles[language][translator][quality][rating]["id"],
                             'language_flag': 'flags/' + language + '.gif',
-                            'language_name': twotofull(language)}) 
+                            'language_name': twotofull(language),
+                            'key': 
foundSubtitles[language][translator][quality][rating]["key"]})
 
 # Extracts the downloaded file and find a new sub/srt file to return.
 # Note that Sratim.co.il currently isn't hosting subtitles in .txt format but
@@ -212,7 +214,8 @@ def search_subtitles( file_original_path, title, tvshow, 
year, season, episode,
 def download_subtitles (subtitles_list, pos, zip_subs, tmp_sub_dir, 
sub_folder, session_id): #standard input
     subtitle_id = subtitles_list[pos][ "subtitle_id" ]
     filename = subtitles_list[pos][ "filename" ]
-    url = BASE_URL + 
"/subtitle/download/"+toOpenSubtitles_two(subtitles_list[pos][ "language_name" 
])+"/"+str(subtitle_id)+"/?v="+filename
+    key = subtitles_list[pos][ "key" ]
+    url = BASE_URL + 
"/subtitle/download/"+toOpenSubtitles_two(subtitles_list[pos][ "language_name" 
])+"/"+str(subtitle_id)+"/?v="+filename+"&key="+key
     log( __name__ ,"%s Fetching subtitles using url %s" % (debug_pretext, url))
     # Get the intended filename (don't know if it's zip or rar)
     archive_name = getURLfilename(url)

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

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


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to