Skip to content

Commit

Permalink
fixed TOO MANY DL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
morsela committed Jan 6, 2015
1 parent 5e02c45 commit 641caa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- reduced the number of files created during download (and extraction)
- fastened the download process a bit
- possible fix for UnicodeDecodeError (#4)
- fixed TOO MANY DL issue (myakove)

1.0.2
- Fixed an issue with Torec search results parsing
Expand All @@ -12,4 +13,4 @@
- Several minor fixes in order to to adhere XBMC add-on repository standards

1.0.0
- Migrated to Gotham style
- Migrated to Gotham style
2 changes: 1 addition & 1 deletion resources/lib/TorecSubtitlesDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _requestSubtitle(self, subID, subURL):
def getDownloadLink(self, subID, optionID, subURL, persist=True):
requestID = self._requestSubtitle(subID, subURL)

params = {"sub_id" : subID, "code": optionID, "sh" : "yes", "guest" : requestID, "timewaited" : "16"}
params = {"sub_id" : subID, "code": optionID, "sh" : "yes", "guest" : requestID, "timewaited" : "20"}
for i in xrange(16):
response = self.urlHandler.request("%s/ajax/sub/downloadun.asp" % self.BASE_URL, params, ajax=True)
if (len(response.data) != 0 or not persist):
Expand Down

0 comments on commit 641caa3

Please sign in to comment.