Fix bug with some Imgur extensions

This commit is contained in:
Serene-Arc authored and Serene committed 2021-05-19 09:57:27 +10:00
1 parent 32f72c35ec
commit 3b28ad24b3
2 files changed
+9 -1

No files matched your search

+1
View File
@@ -71,6 +71,7 @@ class Imgur(BaseDownloader):
@staticmethod
def _validate_extension(extension_suffix: str) -> str:
extension_suffix = extension_suffix.strip('?1')
possible_extensions = ('.jpg', '.png', '.mp4', '.gif')
selection = [ext for ext in possible_extensions if ext == extension_suffix]
if len(selection) == 1: