[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)
pull/1253/head
Mike Fährmann 4 years ago
parent b3bc646236
commit f2b83b8578
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -22,7 +22,7 @@ class GfycatExtractor(Extractor):
def __init__(self, match): def __init__(self, match):
Extractor.__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") self.formats = (self.config("format", "mp4"), "mp4", "webm", "gif")
def items(self): def items(self):

Loading…
Cancel
Save