diff options
| author | 2021-05-03 23:36:45 -0400 | |
|---|---|---|
| committer | 2021-05-03 23:36:45 -0400 | |
| commit | e7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (patch) | |
| tree | 6cfdc1e3da2143801a598a0ba1182d8f7289dc6d /gallery_dl/extractor/8muses.py | |
| parent | d27dcd4646242d6da8436f14c7b37ce864355858 (diff) | |
New upstream version 1.17.3.upstream/1.17.3
Diffstat (limited to 'gallery_dl/extractor/8muses.py')
| -rw-r--r-- | gallery_dl/extractor/8muses.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gallery_dl/extractor/8muses.py b/gallery_dl/extractor/8muses.py index 3eb5565..c961ded 100644 --- a/gallery_dl/extractor/8muses.py +++ b/gallery_dl/extractor/8muses.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2019-2020 Mike Fährmann +# Copyright 2019-2021 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -54,10 +54,17 @@ class _8musesAlbumExtractor(Extractor): "private": False, }, }), + # custom sorting ("https://www.8muses.com/comics/album/Fakku-Comics/8?sort=az", { "count": ">= 70", "keyword": {"name": r"re:^[R-Zr-z]"}, }), + # non-ASCII characters + (("https://comics.8muses.com/comics/album/Various-Authors/Chessire88" + "/From-Trainers-to-Pokmons"), { + "count": 2, + "keyword": {"name": "re:From Trainers to Pokémons"}, + }), ) def __init__(self, match): @@ -125,6 +132,6 @@ class _8musesAlbumExtractor(Extractor): @staticmethod def _unobfuscate(data): return json.loads("".join([ - chr(33 + (ord(c) + 14) % 94) if c != " " else c + chr(33 + (ord(c) + 14) % 94) if "!" <= c <= "~" else c for c in text.unescape(data.strip("\t\n\r !")) ])) |
