[gfycat] consistent 'userName' values for 'user' downloads (#1962)

by using the name from the input URL and not relying on possibly faulty
or incomplete API results.

'userData[username]', if available, will still have the original name.
This commit is contained in:
Mike Fährmann
2021-10-26 19:15:30 +02:00
parent ba9579c504
commit e436a2607b
4 changed files with 9 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ class GfycatUserExtractor(GfycatExtractor):
"count": ">= 100",
})
def metadata(self):
return {"userName": self.key}
def gfycats(self):
return GfycatAPI(self).user(self.key)