diff --git a/CHANGES.md b/CHANGES.md index 4f781c18..2cd546d3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -223,6 +223,7 @@ * Fix PiSexy for vip user class * Change retry sleep timeout for Trakt searches to prevent issues when Trakt is down * Fix TVDb search issue when only 1 result is returned +* Change improve TvChaos item parsing and can use qualities instead of 'Unknown' ### 0.11.16 (2016-10-16 17:30:00 UTC) diff --git a/sickbeard/clients/generic.py b/sickbeard/clients/generic.py index 543f14ea..254875bd 100644 --- a/sickbeard/clients/generic.py +++ b/sickbeard/clients/generic.py @@ -183,7 +183,7 @@ class GenericClient(object): r_code = self._add_torrent_file(result) if not r_code: - logger.log('%s: Unable to send Torrent: Return code undefined' % self.name, logger.ERROR) + logger.log('%s: Unable to send Torrent: Return code undefined (already exists in client?)' % self.name, logger.ERROR) return False if not self._set_torrent_pause(result): diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index f781eb7e..4cbce768 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -103,7 +103,8 @@ def remove_non_release_groups(name, is_anime=False): if name: rc = [re.compile(r'(?i)' + v) for v in [ - '([\s\.\-_\[\{\(]*(no-rar|nzbgeek|ripsalot|rp|siklopentan)[\s\.\-_\]\}\)]*)$', + '([\s\.\-_\[\{\(]*(no-rar|nzbgeek|ripsalot|siklopentan)[\s\.\-_\]\}\)]*)$', + '([\s\.\-_\[\{\(]rp[\s\.\-_\]\}\)]*)$', '(?<=\w)([\s\.\-_]*[\[\{\(][\s\.\-_]*(www\.\w+.\w+)[\s\.\-_]*[\]\}\)][\s\.\-_]*)$', '(?<=\w)([\s\.\-_]*[\[\{\(]\s*(rar(bg|tv)|((e[tz]|v)tv))[\s\.\-_]*[\]\}\)][\s\.\-_]*)$'] + (['(?<=\w)([\s\.\-_]*[\[\{\(][\s\.\-_]*[\w\s\.\-\_]+[\s\.\-_]*[\]\}\)][\s\.\-_]*)$', diff --git a/sickbeard/providers/alpharatio.py b/sickbeard/providers/alpharatio.py index db8fb3b7..375a44bb 100644 --- a/sickbeard/providers/alpharatio.py +++ b/sickbeard/providers/alpharatio.py @@ -79,13 +79,15 @@ class AlphaRatioProvider(generic.TorrentProvider): if 2 > len(torrent_rows): raise generic.HaltParseException + head = None for tr in torrent_rows[1:]: cells = tr.find_all('td') if 5 > len(cells): continue try: + head = head if None is not head else self._header_row(tr) seeders, leechers, size = [tryInt(n, n) for n in [ - cells[x].get_text().strip() for x in -2, -1, -4]] + cells[head[x]].get_text().strip() for x in 'seed', 'leech', 'size']] if self._peers_fail(mode, seeders, leechers): continue diff --git a/sickbeard/providers/bithdtv.py b/sickbeard/providers/bithdtv.py index 6367aabc..478e3e51 100644 --- a/sickbeard/providers/bithdtv.py +++ b/sickbeard/providers/bithdtv.py @@ -69,9 +69,10 @@ class BitHDTVProvider(generic.TorrentProvider): cnt = len(items[mode]) try: - if not html or self._has_no_results(html): + if not html or self._has_no_results(html) or 'width=750' not in html: raise generic.HaltParseException + html = re.sub(r'([^<]*)