mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Merge pull request #507 from JackDandy/feature/ChangeTtN
Change TtN provider to parse new layout.
This commit is contained in:
commit
d78838c2c7
3 changed files with 7 additions and 2 deletions
|
@ -27,6 +27,8 @@
|
||||||
* Fix post processing season pack folders
|
* Fix post processing season pack folders
|
||||||
* Fix saving torrent provider option "Seed until ratio" after recent refactor
|
* Fix saving torrent provider option "Seed until ratio" after recent refactor
|
||||||
* Change white text in light theme on Manage / Episode Status Management page to black for better readability
|
* Change white text in light theme on Manage / Episode Status Management page to black for better readability
|
||||||
|
* Change TtN provider to parse new layout
|
||||||
|
* Improve recognition of SD quality
|
||||||
|
|
||||||
|
|
||||||
### 0.10.0 (2015-08-06 11:05:00 UTC)
|
### 0.10.0 (2015-08-06 11:05:00 UTC)
|
||||||
|
|
|
@ -205,7 +205,7 @@ class Quality:
|
||||||
else:
|
else:
|
||||||
return Quality.UNKNOWN
|
return Quality.UNKNOWN
|
||||||
|
|
||||||
if checkName(['(pdtv|hdtv|dsr|tvrip).((aac|ac3|dd).?\d\.?\d.)*(xvid|x264|h.?264)'], all) and not checkName(['(720|1080)[pi]'], all) \
|
if checkName(['(pdtv|hdtv|dsr|tvrip)([-]|.((aac|ac3|dd).?\d\.?\d.)*(xvid|x264|h.?264))'], all) and not checkName(['(720|1080)[pi]'], all) \
|
||||||
and not checkName(['hr.ws.pdtv.(x264|h.?264)'], any):
|
and not checkName(['hr.ws.pdtv.(x264|h.?264)'], any):
|
||||||
return Quality.SDTV
|
return Quality.SDTV
|
||||||
elif checkName(['web.?dl|web.?rip', 'xvid|x264|h.?264'], all) and not checkName(['(720|1080)[pi]'], all):
|
elif checkName(['web.?dl|web.?rip', 'xvid|x264|h.?264'], all) and not checkName(['(720|1080)[pi]'], all):
|
||||||
|
|
|
@ -93,6 +93,8 @@ class TransmithenetProvider(generic.TorrentProvider):
|
||||||
raise generic.HaltParseException
|
raise generic.HaltParseException
|
||||||
|
|
||||||
for tr in torrent_rows[1:]:
|
for tr in torrent_rows[1:]:
|
||||||
|
if tr.find('td', class_='header'):
|
||||||
|
continue
|
||||||
downlink = tr.find('a', href=rc['get'])
|
downlink = tr.find('a', href=rc['get'])
|
||||||
if None is downlink:
|
if None is downlink:
|
||||||
continue
|
continue
|
||||||
|
@ -102,7 +104,8 @@ class TransmithenetProvider(generic.TorrentProvider):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
info = tr.find('a', href=rc['info'])
|
info = tr.find('a', href=rc['info'])
|
||||||
title = ('title' in info.attrs and info['title']) or info.get_text().strip()
|
title = ('data-src' in info.attrs and info['data-src']) or\
|
||||||
|
('title' in info.attrs and info['title']) or info.get_text().strip()
|
||||||
|
|
||||||
download_url = self.urls['get'] % str(downlink['href']).lstrip('/')
|
download_url = self.urls['get'] % str(downlink['href']).lstrip('/')
|
||||||
except (AttributeError, TypeError):
|
except (AttributeError, TypeError):
|
||||||
|
|
Loading…
Reference in a new issue