Fix bug with some Imgur extensions

This commit is contained in:
Serene-Arc
2021-05-19 09:55:03 +10:00
committed by Serene
parent 32f72c35ec
commit 3b28ad24b3
2 changed files with 9 additions and 1 deletions

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: