Fix error with old gfycat/redgifs urls

This commit is contained in:
alpbetgam
2021-05-16 14:16:47 +12:00
committed by Serene
parent 17226a4f0b
commit ef37712115
2 changed files with 2 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ class Gfycat(Redgifs):
response = Gfycat.retrieve_url(url)
if re.search(r'(redgifs|gifdeliverynetwork)', response.url):
url = url.lower() # Fixes error with old gfycat/redgifs links
return Redgifs._get_link(url)
soup = BeautifulSoup(response.text, 'html.parser')