diff options
| author | 2022-12-04 23:25:11 -0500 | |
|---|---|---|
| committer | 2022-12-04 23:25:11 -0500 | |
| commit | b79007bb57b43b0bb5eff4aa8e5e77a782896e10 (patch) | |
| tree | 42a4b6168cc46f818465a3c25788253b2aa1b1a5 /gallery_dl/extractor/lolisafe.py | |
| parent | 9f3eb7898190a9f1e131a523f37e2e53cc6c6d68 (diff) | |
| parent | 3338dfce719c999467ffe08fd45663be8190057a (diff) | |
Update upstream source from tag 'upstream/1.24.1'
Update to upstream version '1.24.1'
with Debian dir 327715c78291415f1ede99ba69c817d2264b3693
Diffstat (limited to 'gallery_dl/extractor/lolisafe.py')
| -rw-r--r-- | gallery_dl/extractor/lolisafe.py | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/gallery_dl/extractor/lolisafe.py b/gallery_dl/extractor/lolisafe.py index 14d4efb..9caf6d7 100644 --- a/gallery_dl/extractor/lolisafe.py +++ b/gallery_dl/extractor/lolisafe.py @@ -20,10 +20,6 @@ class LolisafeExtractor(BaseExtractor): BASE_PATTERN = LolisafeExtractor.update({ - "zzzz" : { - "root": "https://zz.ht", - "pattern": r"zz\.(?:ht|fo)", - }, "xbunkr": { "root": "https://xbunkr.com", "pattern": r"xbunkr\.com", @@ -35,15 +31,6 @@ class LolisafeAlbumExtractor(LolisafeExtractor): subcategory = "album" pattern = BASE_PATTERN + "/a/([^/?#]+)" test = ( - ("https://zz.ht/a/lop7W6EZ", { - "pattern": r"https://z\.zz\.fo/(4anuY|ih560)\.png", - "count": 2, - "keyword": { - "album_id": "lop7W6EZ", - "album_name": "ferris", - }, - }), - ("https://zz.fo/a/lop7W6EZ"), ("https://xbunkr.com/a/TA0bu3F4", { "pattern": r"https://media\.xbunkr\.com/[^.]+\.\w+", "count": 861, @@ -71,11 +58,10 @@ class LolisafeAlbumExtractor(LolisafeExtractor): yield Message.Directory, data for data["num"], file in enumerate(files, 1): url = file["file"] - if "_fallback" in file: - data["_fallback"] = file["_fallback"] - text.nameext_from_url(url, data) - data["name"], sep, data["id"] = data["filename"].rpartition("-") - yield Message.Url, url, data + file.update(data) + text.nameext_from_url(url, file) + file["name"], sep, file["id"] = file["filename"].rpartition("-") + yield Message.Url, url, file def fetch_album(self, album_id): url = "{}/api/album/get/{}".format(self.root, album_id) |
