diff options
| author | 2025-03-29 07:20:04 -0400 | |
|---|---|---|
| committer | 2025-03-29 07:20:04 -0400 | |
| commit | 5ea6cce4fb40d2cc4f1d7849e44e6825ac2f3a73 (patch) | |
| tree | 2d7040d732323306b2227682068ed5c9e12d4bf0 /gallery_dl/extractor/nozomi.py | |
| parent | 68863e88e0e0d8c08a8631831c05c302527627b1 (diff) | |
| parent | 662e5ac868a5c1a3e7bc95b37054b3a0ca4db74f (diff) | |
Update upstream source from tag 'upstream/1.29.3'
Update to upstream version '1.29.3'
with Debian dir 131b9b3bdbc67af5fe84f139a5b499a550f7c22b
Diffstat (limited to 'gallery_dl/extractor/nozomi.py')
| -rw-r--r-- | gallery_dl/extractor/nozomi.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gallery_dl/extractor/nozomi.py b/gallery_dl/extractor/nozomi.py index 851f663..3d1722a 100644 --- a/gallery_dl/extractor/nozomi.py +++ b/gallery_dl/extractor/nozomi.py @@ -21,6 +21,7 @@ class NozomiExtractor(Extractor): """Base class for nozomi extractors""" category = "nozomi" root = "https://nozomi.la" + domain = "gold-usergeneratedcontent.net" filename_fmt = "{postid} {dataid}.{extension}" archive_fmt = "{dataid}" @@ -31,8 +32,8 @@ class NozomiExtractor(Extractor): data = self.metadata() for post_id in map(str, self.posts()): - url = "https://j.nozomi.la/post/{}/{}/{}.json".format( - post_id[-1], post_id[-3:-1], post_id) + url = "https://j.{}/post/{}/{}/{}.json".format( + self.domain, post_id[-1], post_id[-3:-1], post_id) response = self.request(url, fatal=False) if response.status_code >= 400: @@ -76,8 +77,8 @@ class NozomiExtractor(Extractor): ext = "webp" post["extension"] = ext - post["url"] = url = "https://{}.nozomi.la/{}/{}/{}.{}".format( - subdomain, did[-1], did[-3:-1], did, ext) + post["url"] = url = "https://{}.{}/{}/{}/{}.{}".format( + subdomain, self.domain, did[-1], did[-3:-1], did, ext) yield Message.Url, url, post def posts(self): @@ -168,7 +169,7 @@ class NozomiSearchExtractor(NozomiExtractor): negative = [] def nozomi(path): - url = "https://j.nozomi.la/" + path + ".nozomi" + url = "https://j.{}/{}.nozomi".format(self.domain, path) return decode_nozomi(self.request(url).content) for tag in self.tags: |
