mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
fix broken mirror failover
This commit is contained in:
parent
1706c9b21f
commit
f284854aca
@ -229,7 +229,7 @@ def remote(args, mirror):
|
|||||||
r'([^<]+)</td>', res)
|
r'([^<]+)</td>', res)
|
||||||
|
|
||||||
# check for a blocked mirror
|
# 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:
|
if found == [] and no_results is None:
|
||||||
# Contradiction - we found no results,
|
# Contradiction - we found no results,
|
||||||
# but the page didn't say there were no results.
|
# but the page didn't say there were no results.
|
||||||
|
Loading…
Reference in New Issue
Block a user