[imgur] strip trailing '?1' from 'ext'
This commit is contained in:
parent
cf147dfee9
commit
7e0207bcf4
@ -30,6 +30,7 @@ class ImgurExtractor(Extractor):
|
||||
return self._clean(json.loads(data))
|
||||
|
||||
def _prepare(self, image):
|
||||
image["ext"] = image["ext"].partition("?")[0]
|
||||
if image["ext"] == ".gif" and (
|
||||
(self.mp4 and image["prefer_video"]) or self.mp4 == "always"):
|
||||
image["ext"] = ".mp4"
|
||||
|
Loading…
x
Reference in New Issue
Block a user