Skip to content

Commit

Permalink
- fixed: Bierdopje needs a single quote changed to two single quotes …
Browse files Browse the repository at this point in the history
…(Grey's Anatomy -> Grey''s Anatomy) otherwise it couldn't find a show-id, thx mr_blobby
  • Loading branch information
mr-blobby committed Dec 29, 2010
1 parent 2124e9f commit 203fcbb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion script.xbmc.subtitles/addon.xml
Original file line number Diff line number Diff line change
@@ -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.4"
provider-name="Amet">
<requires>
<import addon="xbmc.python" version="1.0"/>
Expand Down
3 changes: 3 additions & 0 deletions script.xbmc.subtitles/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.2.4
- 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

2.2.3
- fixed: Hungarian translation, thanks alanwww1.
- fixed: addic7ed would fail on That '70s Show, we remove "'" to fix the search
Expand Down
13 changes: 10 additions & 3 deletions script.xbmc.subtitles/resources/lib/services/Bierdopje/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 203fcbb

Please sign in to comment.