Skip to content

Commit

Permalink
Fix non-HD links
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Ochotnicky committed Sep 14, 2010
1 parent 92919af commit 575a74a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytrailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ def trailerLinks(self):
url=url[1:-1]
subPos = url.rfind('_')
if subPos == url.rfind('_h.'):
url = re.sub('(.*)/([^/]*)_h.([^/]*)',r'\1/\2_h\3', url)
url = re.sub('(.*)/([^/]*)_h.([^/]*mov).*',r'\1/\2_h\3', url)
else:
url = re.sub('(.*)/([^/]*)_([^/]*)',r'\1/\2_h\3', url)
url = re.sub('(.*)/([^/]*)_([^/]*mov).*',r'\1/\2_h\3', url)

url = re.sub('_hh','_h', url)
url = re.sub('h640','h640w', url)
self._trailerLinks.append(url)
return self._trailerLinks

Expand Down

0 comments on commit 575a74a

Please sign in to comment.