Private GIT

Skip to content
Snippets Groups Projects
Commit c821c20d authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

RarBG: Add new search strings to catch error response

parent 527942dd
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,12 @@ class RarbgProvider(generic.TorrentProvider):
logger.log(u'{name} Too many requests per minute.'.format(name=self.name), logger.ERROR)
time.sleep(10)
continue
if re.search('Cant find search_tvdb in database. Are you sure this imdb exists?', data):
logger.log(u'{name} no results found. Search tvdb id do not exist on server.'.format(name=self.name), logger.DEBUG)
continue
if re.search('Cant find search_tvrage in database. Are you sure this imdb exists?', data):
logger.log(u'{name} no results found. Search tvrage id do not exist on server.'.format(name=self.name), logger.DEBUG)
continue
try:
data_json = json.loads(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment