Fix bug with some Imgur extensions
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user