1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Merge pull request #14 from fredefox/fix-spoofing

Do not negate check for string "No hits"
This commit is contained in:
Viktor Stanchev 2014-03-03 11:14:41 -05:00
commit d9cba85384

View File

@ -74,7 +74,7 @@ def main():
# check for a blocked mirror # check for a blocked mirror
no_results = re.search(""""No hits\.""", res) no_results = re.search(""""No hits\.""", res)
if found == [] and not no_results is None: if found == [] and no_results is None:
# Contradiction - we found no results, but the page didn't say there were no results # Contradiction - we found no results, but the page didn't say there were no results
# the page is probably not actually the pirate bay, so let's try another mirror # the page is probably not actually the pirate bay, so let's try another mirror
raise Exception("Blocked mirror detected.") raise Exception("Blocked mirror detected.")