Add support for mobile Imgur links

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:52 +03:00
1 parent 97b10ee4e3
commit 9aa1383b43
3 files changed
+38 -16

No files matched your search

@@ -34,7 +34,7 @@ class DownloadFactory:
return Gfycat
elif re.match(url_beginning + r'gifdeliverynetwork', url):
return GifDeliveryNetwork
elif re.match(url_beginning + r'imgur.*', url):
elif re.match(url_beginning + r'(m\.)?imgur.*', url):
return Imgur
elif re.match(url_beginning + r'redgifs.com', url):
return Redgifs