diff --git a/CHANGES.md b/CHANGES.md index 3955615d..eb463908 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -27,6 +27,8 @@ * Fix post processing season pack folders * 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 TtN provider to parse new layout +* Improve recognition of SD quality ### 0.10.0 (2015-08-06 11:05:00 UTC) diff --git a/sickbeard/common.py b/sickbeard/common.py index 602bc58d..1d7e4dc3 100644 --- a/sickbeard/common.py +++ b/sickbeard/common.py @@ -205,7 +205,7 @@ class Quality: else: 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): return Quality.SDTV elif checkName(['web.?dl|web.?rip', 'xvid|x264|h.?264'], all) and not checkName(['(720|1080)[pi]'], all): diff --git a/sickbeard/providers/transmithe_net.py b/sickbeard/providers/transmithe_net.py index bfa25791..8bc48a5b 100644 --- a/sickbeard/providers/transmithe_net.py +++ b/sickbeard/providers/transmithe_net.py @@ -93,6 +93,8 @@ class TransmithenetProvider(generic.TorrentProvider): raise generic.HaltParseException for tr in torrent_rows[1:]: + if tr.find('td', class_='header'): + continue downlink = tr.find('a', href=rc['get']) if None is downlink: continue @@ -102,7 +104,8 @@ class TransmithenetProvider(generic.TorrentProvider): continue 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('/') except (AttributeError, TypeError):