1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

fix broken mirror failover

This commit is contained in:
Viktor Stanchev 2015-04-11 00:38:09 -04:00
parent 1706c9b21f
commit f284854aca

View File

@ -229,7 +229,7 @@ def remote(args, mirror):
r'([^<]+)</td>', res)
# check for a blocked mirror
no_results = re.search(r'"No hits\.', res)
no_results = re.search(r'No hits\. Try adding an asterisk in you search phrase\.', res)
if found == [] and no_results is None:
# Contradiction - we found no results,
# but the page didn't say there were no results.