Skip to content

Commit

Permalink
fixed broken search due to site API change (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsela authored Nov 12, 2016
1 parent 25c9906 commit d46afd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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="service.subtitles.torec"
name="Torec"
version="1.1.3"
version="1.1.4"
provider-name="slmosl">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.1.4
- fixed broken search due to site API change

1.1.3
- another (hopefully better) fix for download link issue

Expand Down
2 changes: 1 addition & 1 deletion resources/lib/TorecSubtitlesDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class SubtitleOption(object):
def __init__(self, subtitle_option_row):
onclick_action_string = subtitle_option_row.find("td", { "class" : "desktop" }).find("button").get("onclick")
params_match = re.match("downloadSub\(\'(?P<option_id>\w*)\',(?P<sub_id>\d+),", onclick_action_string)
params_match = re.search("\((?P<sub_id>\d+),\'(?P<option_id>\w*)\',", onclick_action_string)
if not params_match:
return

Expand Down

0 comments on commit d46afd6

Please sign in to comment.