[gfycat] convert IDs to lowercase

Redgifs expects all IDs and names to be lowercase
and throws a 404 if an ID contains an uppercase letter.

Gfycat on the other hand doesn't care about case,
so it's fine to just convert all IDs.

(#1138)
This commit is contained in:
Mike Fährmann
2021-01-08 16:02:59 +01:00
parent b3bc646236
commit f2b83b8578

View File

@@ -22,7 +22,7 @@ class GfycatExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
self.key = match.group(1)
self.key = match.group(1).lower()
self.formats = (self.config("format", "mp4"), "mp4", "webm", "gif")
def items(self):