The branch, gotham has been updated
       via  9a71356b09cca2aef28c9bb7c447c9f250d4119d (commit)
       via  d59f37eeb95d2a08c389d94edbd5ba9a7d6ac100 (commit)
      from  a640afb94dde1a3a4e5f3febcdaec782288268c4 (commit)

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

commit 9a71356b09cca2aef28c9bb7c447c9f250d4119d
Author: amet <[email protected]>
Date:   Tue Jan 14 00:14:28 2014 +0400

    [service.subtitles.podnapisi] -v 5.0.5
    
    5.0.5
    - cosmetics
    - Fix unzip issues with non-ascii in ziplib library

diff --git a/service.subtitles.podnapisi/addon.xml 
b/service.subtitles.podnapisi/addon.xml
index 7fd504e..e0f725a 100755
--- a/service.subtitles.podnapisi/addon.xml
+++ b/service.subtitles.podnapisi/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="service.subtitles.podnapisi"
        name="Podnapisi.net"
-       version="5.0.4"
+       version="5.0.5"
        provider-name="amet">
   <requires>
     <import addon="xbmc.python" version="2.1.0"/>
diff --git a/service.subtitles.podnapisi/changelog.txt 
b/service.subtitles.podnapisi/changelog.txt
index 04cbfc8..994b15f 100644
--- a/service.subtitles.podnapisi/changelog.txt
+++ b/service.subtitles.podnapisi/changelog.txt
@@ -1,3 +1,7 @@
+5.0.5
+- cosmetics
+- Fix unzip issues with non-ascii in ziplib library
+
 5.0.4
 - add notification that we dont support manual search 
 
diff --git a/service.subtitles.podnapisi/service.py 
b/service.subtitles.podnapisi/service.py
index da5d485..7074eff 100644
--- a/service.subtitles.podnapisi/service.py
+++ b/service.subtitles.podnapisi/service.py
@@ -6,7 +6,7 @@ import xbmc
 import urllib
 import xbmcvfs
 import xbmcaddon
-import xbmcgui,xbmcplugin,shutil,zipfile
+import xbmcgui,xbmcplugin,shutil
 
 __addon__ = xbmcaddon.Addon()
 __author__     = __addon__.getAddonInfo('author')
@@ -68,18 +68,15 @@ def Search( item ):
                                   iconImage=it["rating"],
                                   thumbnailImage=it["language_flag"]
                                   )
-      if it["sync"]:
-        listitem.setProperty( "sync", "true" )
-      else:
-        listitem.setProperty( "sync", "false" )
-    
-      if it.get("hearing_imp", False):
-        listitem.setProperty( "hearing_imp", "true" )
-      else:
-        listitem.setProperty( "hearing_imp", "false" )
+
+      listitem.setProperty( "sync", ("false", "true")[it["sync"]] )
+      listitem.setProperty( "hearing_imp", ("false", 
"true")[it.get("hearing_imp", False)] )
       
-      url = "plugin://%s/?action=download&link=%s&ID=%s&filename=%s" % 
(__scriptid__, it["link"], 
-it["ID"],it["filename"])
+      url = "plugin://%s/?action=download&link=%s&ID=%s&filename=%s" % 
(__scriptid__,
+                                                                        
it["link"],
+                                                                        
it["ID"],
+                                                                        
it["filename"]
+                                                                        )
       
       
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=listitem,isFolder=False)
 
@@ -96,10 +93,12 @@ def Download(url,filename):
     subFile.write(f.read())
   subFile.close()
   xbmc.sleep(500)
-  zipf = zipfile.ZipFile(zip, mode='r')
-  for subfile in zipf.namelist():
-    zipf.extract(subfile, __temp__)
-    file = os.path.join(__temp__, subfile)
+#  zipf = zipfile.ZipFile(zip, mode='r')
+#  for subfile in zipf.namelist():
+#    zipf.extract(subfile, __temp__)
+  xbmc.executebuiltin(('XBMC.Extract("%s","%s")' % 
(zip,__temp__,)).encode('utf-8'), True)
+  for subfile in xbmcvfs.listdir(zip)[1]:
+    file = os.path.join(__temp__, subfile.decode('utf-8'))
     if (os.path.splitext( file )[1] in exts):
       subtitle_list.append(file)
     

http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=d59f37eeb95d2a08c389d94edbd5ba9a7d6ac100

commit d59f37eeb95d2a08c389d94edbd5ba9a7d6ac100
Author: amet <[email protected]>
Date:   Tue Jan 14 00:13:23 2014 +0400

    [service.subtitles.opensubtitles] -v5.0.6
    
    5.0.6
    - add login details to addon settings

diff --git a/service.subtitles.opensubtitles/addon.xml 
b/service.subtitles.opensubtitles/addon.xml
index 8068395..bf45b35 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.5"
+       version="5.0.6"
        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 71fd26d..767414e 100644
--- a/service.subtitles.opensubtitles/changelog.txt
+++ b/service.subtitles.opensubtitles/changelog.txt
@@ -1,3 +1,7 @@
+5.0.6
+- clean temp folder
+- add login details to addon settings
+
 5.0.5
 - [fix] ascii UNICODE.decode
 - [fix] manual search string unquoted
diff --git 
a/service.subtitles.opensubtitles/resources/language/English/strings.po 
b/service.subtitles.opensubtitles/resources/language/English/strings.po
index 836e194..7781487 100644
--- a/service.subtitles.opensubtitles/resources/language/English/strings.po
+++ b/service.subtitles.opensubtitles/resources/language/English/strings.po
@@ -17,3 +17,15 @@ msgstr ""
 msgctxt "#32001"
 msgid "Error searching for subtitles"
 msgstr ""
+
+msgctxt "#32002"
+msgid "Username"
+msgstr ""
+
+msgctxt "#32003"
+msgid "Password"
+msgstr ""
+
+msgctxt "#32004"
+msgid "Login Details"
+msgstr ""
\ No newline at end of file
diff --git a/service.subtitles.opensubtitles/resources/lib/OSUtilities.py 
b/service.subtitles.opensubtitles/resources/lib/OSUtilities.py
index cb47bcf..d9a0856 100644
--- a/service.subtitles.opensubtitles/resources/lib/OSUtilities.py
+++ b/service.subtitles.opensubtitles/resources/lib/OSUtilities.py
@@ -19,7 +19,7 @@ BASE_URL_XMLRPC = u"http://api.opensubtitles.org/xml-rpc";
 class OSDBServer:
   def __init__( self, *args, **kwargs ):
     self.server = xmlrpclib.Server( BASE_URL_XMLRPC, verbose=0 )
-    login = self.server.LogIn("", "", "en", "%s_v%s" 
%(__scriptname__.replace(" ","_"),__version__))
+    login = self.server.LogIn(__addon__.getSetting( "OSuser" ), 
__addon__.getSetting( "OSpass" ), "en", "%s_v%s" %(__scriptname__.replace(" 
","_"),__version__))
     self.osdb_token  = login[ "token" ]
 
   def searchsubtitles( self, item):

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

Summary of changes:
 service.subtitles.opensubtitles/addon.xml          |    2 +-
 service.subtitles.opensubtitles/changelog.txt      |    4 ++
 .../resources/language/English/strings.po          |   12 +++++++
 .../resources/lib/OSUtilities.py                   |    2 +-
 .../resources/settings.xml                         |    7 ++++
 service.subtitles.podnapisi/addon.xml              |    2 +-
 service.subtitles.podnapisi/changelog.txt          |    4 ++
 service.subtitles.podnapisi/service.py             |   31 +++++++++----------
 8 files changed, 45 insertions(+), 19 deletions(-)
 create mode 100644 service.subtitles.opensubtitles/resources/settings.xml


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to