[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:
@@ -1,5 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 1.19.1 - 2021-10-24
|
||||
### Additions
|
||||
- [inkbunny] add `following` extractor ([#515](https://github.com/mikf/gallery-dl/issues/515))
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ class RedgifsUserExtractor(RedgifsExtractor):
|
||||
"count": ">= 100",
|
||||
})
|
||||
|
||||
def metadata(self):
|
||||
return {"userName": self.key}
|
||||
|
||||
def gfycats(self):
|
||||
return RedgifsAPI(self).user(self.key)
|
||||
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
__version__ = "1.19.1"
|
||||
__version__ = "1.19.2-dev"
|
||||
|
||||
Reference in New Issue
Block a user