The branch, gotham has been updated
via 3375611fcc25eaa3a5574381d7da01f0dacaa9c1 (commit)
from f2cf0c377e08b801e64c605eda262e96444b65dc (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=3375611fcc25eaa3a5574381d7da01f0dacaa9c1
commit 3375611fcc25eaa3a5574381d7da01f0dacaa9c1
Author: amet <[email protected]>
Date: Mon Apr 14 21:48:10 2014 +0400
[service.subtitles.opensubtitles] -v 5.0.8
5.0.8
- fix: extension is needed for downloaded files
diff --git a/service.subtitles.opensubtitles/addon.xml
b/service.subtitles.opensubtitles/addon.xml
index 54ba2a9..c0dc4fd 100755
--- a/service.subtitles.opensubtitles/addon.xml
+++ b/service.subtitles.opensubtitles/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.opensubtitles"
name="OpenSubtitles.org"
- version="5.0.7"
+ version="5.0.8"
provider-name="amet">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
diff --git a/service.subtitles.opensubtitles/changelog.txt
b/service.subtitles.opensubtitles/changelog.txt
index 5dc8a9f..d37c8df 100644
--- a/service.subtitles.opensubtitles/changelog.txt
+++ b/service.subtitles.opensubtitles/changelog.txt
@@ -1,3 +1,6 @@
+5.0.8
+- fix: extension is needed for downloaded files
+
5.0.7
- fix: Do not use unsafe file names, thx Cesar Canassa
diff --git a/service.subtitles.opensubtitles/service.py
b/service.subtitles.opensubtitles/service.py
old mode 100644
new mode 100755
index 2c55834..2fff40d
--- a/service.subtitles.opensubtitles/service.py
+++ b/service.subtitles.opensubtitles/service.py
@@ -50,24 +50,24 @@ def Search( item ):
listitem.setProperty( "sync", ("false",
"true")[str(item_data["MatchedBy"]) == "moviehash"] )
listitem.setProperty( "hearing_imp", ("false",
"true")[int(item_data["SubHearingImpaired"]) != 0] )
-
- url = "plugin://%s/?action=download&link=%s&ID=%s&filename=%s" %
(__scriptid__,
+ url = "plugin://%s/?action=download&link=%s&ID=%s&filename=%s&format=%s"
% (__scriptid__,
item_data["ZipDownloadLink"],
item_data["IDSubtitleFile"],
-
item_data["SubFileName"]
+
item_data["SubFileName"],
+
item_data["SubFormat"]
)
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=listitem,isFolder=False)
-def Download(id,url, stack=False):
+def Download(id,url,format,stack=False):
subtitle_list = []
exts = [".srt", ".sub", ".txt", ".smi", ".ssa", ".ass" ]
if stack: ## we only want XMLRPC download if movie is not in stack,
## you can only retreive multiple subs in zip
result = False
else:
- subtitle = os.path.join(__temp__, str(uuid.uuid4()))
+ subtitle = os.path.join(__temp__, "%s.%s" %(str(uuid.uuid4()), format))
try:
result = OSDBServer().download(id, subtitle)
except:
@@ -165,7 +165,7 @@ if params['action'] == 'search' or params['action'] ==
'manualsearch':
Search(item)
elif params['action'] == 'download':
- subs = Download(params["ID"], params["link"])
+ subs = Download(params["ID"], params["link"],params["format"])
for sub in subs:
listitem = xbmcgui.ListItem(label=sub)
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=sub,listitem=listitem,isFolder=False)
-----------------------------------------------------------------------
Summary of changes:
service.subtitles.opensubtitles/addon.xml | 2 +-
service.subtitles.opensubtitles/changelog.txt | 3 +++
service.subtitles.opensubtitles/service.py | 12 ++++++------
3 files changed, 10 insertions(+), 7 deletions(-)
mode change 100644 => 100755 service.subtitles.opensubtitles/service.py
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons