[zerochan] use 'gallery-dl/<version>' User-Agent (#8288)

This commit is contained in:
Mike Fährmann
2025-09-25 09:39:21 +02:00
parent 0b707df6e3
commit a4bcd1f34f
2 changed files with 2 additions and 1 deletions

View File

@@ -706,7 +706,7 @@ extractor.*.user-agent
Type
``string``
Default
* ``"gallery-dl/VERSION"``: ``[Danbooru]``, ``mangadex``, ``weasyl``
* ``"gallery-dl/VERSION"``: ``[Danbooru]``, ``mangadex``, ``weasyl``, ``zerochan``
* ``"gallery-dl/VERSION (by mikf)"``: ``[E621]``
* ``"net.umanle.arca.android.playstore/0.9.75"``: ``arcalive``
* ``"Patreon/72.2.28 (Android; Android 14; Scale/2.10)"``: ``patreon``

View File

@@ -26,6 +26,7 @@ class ZerochanExtractor(BooruExtractor):
per_page = 250
cookies_domain = ".zerochan.net"
cookies_names = ("z_id", "z_hash")
useragent = util.USERAGENT
request_interval = (0.5, 1.5)
def login(self):