From e436a2607b2478679b74bbe07ed901eb39bc46a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 26 Oct 2021 19:15:30 +0200 Subject: [PATCH] [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. --- CHANGELOG.md | 2 ++ gallery_dl/extractor/gfycat.py | 3 +++ gallery_dl/extractor/redgifs.py | 3 +++ gallery_dl/version.py | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7421c2af..bccf41a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/gallery_dl/extractor/gfycat.py b/gallery_dl/extractor/gfycat.py index 9b4d5eea..c272df4b 100644 --- a/gallery_dl/extractor/gfycat.py +++ b/gallery_dl/extractor/gfycat.py @@ -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) diff --git a/gallery_dl/extractor/redgifs.py b/gallery_dl/extractor/redgifs.py index e078bef6..26b57fd5 100644 --- a/gallery_dl/extractor/redgifs.py +++ b/gallery_dl/extractor/redgifs.py @@ -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) diff --git a/gallery_dl/version.py b/gallery_dl/version.py index ee01549e..1345161c 100644 --- a/gallery_dl/version.py +++ b/gallery_dl/version.py @@ -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"