Skip to content

Commit b5dcbb3

Browse files
committed
Fix scraping old-style GayWire URLs
1 parent 36099ab commit b5dcbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapers/GayWire/GayWire.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424

2525
def redirect(url: str) -> str:
26-
if not url or "gaywire.com/scene/" not in url:
26+
if not url:
2727
return url
28-
if (res := head(url)) and (redirect := res.headers.get("Location", url)):
28+
if (res := head(url)) and (redirect := res.headers.get("location", url)):
2929
return redirect if not redirect.endswith("404") else url
3030
return url
3131

0 commit comments

Comments
 (0)