Redgif fixes

Missing half of #733
This commit is contained in:
Soulsuck24 committed 2022-12-31 08:53:13 -05:00
1 parent 0bb94040d6
commit 874c7e3117
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ class DownloadFactory:
sanitised_url = DownloadFactory.sanitise_url(url)
if re.match(r"(i\.|m\.)?imgur", sanitised_url):
return Imgur
elif re.match(r"(i\.)?(redgifs|gifdeliverynetwork)", sanitised_url):
elif re.match(r"(i\.|thumbs\d\.)?(redgifs|gifdeliverynetwork)", sanitised_url):
return Redgifs
elif re.match(r".*/.*\.[a-zA-Z34]{3,4}(\?[\w;&=]*)?$", sanitised_url) and not DownloadFactory.is_web_resource(
sanitised_url