fix: delete useless conds
This commit is contained in:
parent
ed6160c54f
commit
7b6401d59b
@ -108,13 +108,11 @@ class WaybackMachineSaveAPI(object):
|
|||||||
if match is not None and len(match.groups()) == 1:
|
if match is not None and len(match.groups()) == 1:
|
||||||
return "https" + match.group(1)
|
return "https" + match.group(1)
|
||||||
|
|
||||||
if self.response_url:
|
self.response_url = self.response_url.strip()
|
||||||
self.response_url = self.response_url.strip()
|
regex4 = r"web\.archive\.org/web/(?:[0-9]*?)/(?:.*)$"
|
||||||
if "web.archive.org/web" in self.response_url:
|
match = re.search(regex4, self.response_url)
|
||||||
regex4 = r"web\.archive\.org/web/(?:[0-9]*?)/(?:.*)$"
|
if match is not None:
|
||||||
match = re.search(regex4, self.response_url)
|
return "https://" + match.group(0)
|
||||||
if match is not None:
|
|
||||||
return "https://" + match.group(0)
|
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user