The branch, dharma has been updated
       via  16b9b7a2fab6240d4227ad7b9c0f47afb200a5de (commit)
      from  9b7600cdde8d9806dffb11b18201a5d7e5334b3f (commit)

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

commit 16b9b7a2fab6240d4227ad7b9c0f47afb200a5de
Author: amet <a...@nospam>
Date:   Thu Dec 30 12:18:42 2010 +0400

    [script.xbmc.subtitles] -v 2.2.3
    - fixed: Bierdopje needs a single quote changed to two single quotes 
(Grey's Anatomy -> Grey''s Anatomy) otherwise it couldn't find a show-id, thx 
mr_blobby
    - fixed: Hungarian translation, thanks alanwww1.
    - fixed: addic7ed would fail on That '70s Show, we remove " ' " to fix the 
search

diff --git a/script.xbmc.subtitles/addon.xml b/script.xbmc.subtitles/addon.xml
index 5125dd8..0755151 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.2.2"
+       version="2.2.3"
        provider-name="Amet">
   <requires>
     <import addon="xbmc.python" version="1.0"/>
diff --git a/script.xbmc.subtitles/changelog.txt 
b/script.xbmc.subtitles/changelog.txt
index f3b2e8a..34252f0 100644
--- a/script.xbmc.subtitles/changelog.txt
+++ b/script.xbmc.subtitles/changelog.txt
@@ -1,8 +1,13 @@
+2.2.3
+- fixed: Bierdopje needs a single quote changed to two single quotes (Grey's 
Anatomy -> Grey''s Anatomy) otherwise it couldn't find a show-id, thx mr_blobby 
+- fixed: Hungarian translation, thanks alanwww1.
+- fixed: addic7ed would fail on That '70s Show, we remove "'" to fix the search
+
 2.2.2
--added Itasa (Italiansubs.net), thx mr_blobby
+-added: Itasa (Italiansubs.net), thx mr_blobby
 
 2.2.1
--added Swesub.nu, thx mr_blobby
+-added: Swesub.nu, thx mr_blobby
 
 2.2.0
 - simplify services code
diff --git a/script.xbmc.subtitles/resources/language/Hungarian/strings.xml 
b/script.xbmc.subtitles/resources/language/Hungarian/strings.xml
index 6ab989d..7476210 100644
--- a/script.xbmc.subtitles/resources/language/Hungarian/strings.xml
+++ b/script.xbmc.subtitles/resources/language/Hungarian/strings.xml
@@ -34,13 +34,13 @@
     <string id="30103">Szolgáltastások</string>
     <string id="30104">- Podnapisi.net felhasználónév</string>
     <string id="30105">- Podnapisi.net jelszó</string>
-    <string id="30106">Különleges beállítások</string>
+    <string id="30106">Egyéb</string>
     <string id="30107">Feliratmappa megeggyezik a film mappájával</string>
     <string id="30108">- Egyedi feliratmappa megadása</string>
     <string id="30110">Keresési szöveg manuális megadása</string>
     <string id="30111">Harmadik nyelv</string>  
-    <string id="30113">Alapértelmezett szolgáltatás választása 
mozifilmekre</string>
-    <string id="30114">Alapértelmezett szolgáltatás választása TV 
sorozatokra</string>    
+    <string id="30113">Szolgáltatás mozifilmekre</string>
+    <string id="30114">Szolgáltatás TV sorozatokra</string>    
     <string id="30118">Fájlnév megjelenítése a találatok között</string>
     <string id="30119">Keresés mappanév használatával</string> 
     <string id="30121">Nyelv hozzáadása a fájlnévhez </string>
diff --git a/script.xbmc.subtitles/resources/lib/services/Addic7ed/service.py 
b/script.xbmc.subtitles/resources/lib/services/Addic7ed/service.py
index 7ee938c..40b4683 100644
--- a/script.xbmc.subtitles/resources/lib/services/Addic7ed/service.py
+++ b/script.xbmc.subtitles/resources/lib/services/Addic7ed/service.py
@@ -26,7 +26,7 @@ def get_url(url):
 
 def query_TvShow(name, season, episode, file_original_path, langs):
     sublinks = []
-    name = name.lower().replace(" ", "_").replace("$#*!","shit") #need this 
for $#*! My Dad Says
+    name = name.lower().replace(" ", 
"_").replace("$#*!","shit").replace("'","") # need this for $#*! My Dad Says 
and That 70s show
     searchurl = "%s/serie/%s/%s/%s/addic7ed" %(self_host, name, season, 
episode)
     socket.setdefaulttimeout(3)
     page = urllib2.urlopen(searchurl)
diff --git a/script.xbmc.subtitles/resources/lib/services/Bierdopje/service.py 
b/script.xbmc.subtitles/resources/lib/services/Bierdopje/service.py
index 04900e3..48912e4 100644
--- a/script.xbmc.subtitles/resources/lib/services/Bierdopje/service.py
+++ b/script.xbmc.subtitles/resources/lib/services/Bierdopje/service.py
@@ -56,9 +56,16 @@ def getshowid(showname):
             log( __name__ ," show id for '%s' is '%s'" % (showname, 
str(showid[0])) )
             return str(showid[0])
         else:
-            okdialog = xbmcgui.Dialog()
-            ok = okdialog.ok("Error", "Failed to get a show id from Bierdopje 
for " + showname)
-            log( __name__ ," failed to get a show id for '%s'" % showname )
+            response = 
apicall("GetShowByName",[string.replace(showname,"'","''")])
+            if response is not None:
+                showid = gettextelements(response,"response/showid")
+                if len(showid) == 1:
+                    log( __name__ ," show id for '%s' is '%s' (replaced ' with 
'')" % (string.replace(showname,"'","''"), str(showid[0])) )
+                    return str(showid[0])
+                else:
+                    okdialog = xbmcgui.Dialog()
+                    ok = okdialog.ok("Error", "Failed to get a show id from 
Bierdopje for " + showname)
+                    log( __name__ ," failed to get a show id for '%s'" % 
showname )
         
 
 def isexactmatch(subsfile, moviefile):

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

Summary of changes:
 script.xbmc.subtitles/addon.xml                    |    2 +-
 script.xbmc.subtitles/changelog.txt                |    9 +++++++--
 .../resources/language/Hungarian/strings.xml       |    6 +++---
 .../resources/lib/services/Addic7ed/service.py     |    2 +-
 .../resources/lib/services/Bierdopje/service.py    |   13 ++++++++++---
 5 files changed, 22 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to