Add support for mobile Imgur links

This commit is contained in:
Serene-Arc
2021-04-08 11:24:55 +10:00
committed by Ali Parlakci
parent 97b10ee4e3
commit 9aa1383b43
3 changed files with 38 additions and 16 deletions

View File

@@ -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