Add fix for Imgur gifv links

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:52 +03:00
1 parent 7228bc572c
commit c90d98ac72
2 files changed
+4 -1

No files matched your search

@@ -37,7 +37,7 @@ class Imgur(BaseDownloader):
@staticmethod
def _get_data(link: str) -> dict:
if re.match(r'.*i\.imgur\.com.*\.gifv$', link):
if re.match(r'.*\.gifv$', link):
link = link.replace('i.imgur', 'imgur')
link = link.rstrip('.gifv')