Fix error with old gfycat/redgifs urls
This commit is contained in:
1 parent
17226a4f0b
commit
ef37712115
2 files changed
+2
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user