Change improve metadata handler during postprocessing when tvinfo source is down.

Fix Torrentz2 filter spam.
This commit is contained in:
JackDandy 2018-04-06 13:27:40 +01:00
parent 678df6ce94
commit a2908a62a9
3 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,10 @@
### 0.15.6 (2018-04-05 01:20:00 UTC)
### 0.15.7 (2018-04-06 13:30:00 UTC)
* Change improve metadata handler during postprocessing when tvinfo source is down
* Fix Torrentz2 filter spam
### 0.15.6 (2018-04-05 01:20:00 UTC)
* Fix cf algorythm

View file

@ -644,6 +644,8 @@ class Tvdb:
try:
src = self._load_url(url, params=params, language=language)
return src
except tvdb_error:
raise sickbeard.indexer_error
except (StandardError, Exception):
return []

View file

@ -90,7 +90,7 @@ class Torrentz2Provider(generic.TorrentProvider):
search_string = isinstance(search_string, unicode) and unidecode(search_string) or search_string
search_url = self.urls['search' + ('', 'v')[self.confirmed]] % (
'tv%s' % ('+' + quote_plus(search_string), '')['Cache' == mode])
quote_plus('%s -Torrent9 -nextorrent -XXX' % (search_string, 'x264')['Cache' == mode]))
html = self.get_url(search_url)
if self.should_skip():