Add support for direct links with parameters

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:51 +03:00
1 parent 4b49991cd6
commit c2c3d03205
2 files changed
+3 -1

No files matched your search

@@ -24,7 +24,7 @@ class DownloadFactory:
url_beginning = r'\s*(https?://(www\.)?)'
if re.match(url_beginning + r'i\.imgur.*\.gifv$', url):
return Imgur
elif re.match(url_beginning + r'.*/.*\.\w{3,4}$', url):
elif re.match(url_beginning + r'.*/.*\.\w{3,4}(\?[\w;&=]*)?$', url):
return Direct
elif re.match(url_beginning + r'erome\.com.*', url):
return Erome