[zerochan] use 'gallery-dl/<version>' User-Agent (#8288)
This commit is contained in:
@@ -706,7 +706,7 @@ extractor.*.user-agent
|
|||||||
Type
|
Type
|
||||||
``string``
|
``string``
|
||||||
Default
|
Default
|
||||||
* ``"gallery-dl/VERSION"``: ``[Danbooru]``, ``mangadex``, ``weasyl``
|
* ``"gallery-dl/VERSION"``: ``[Danbooru]``, ``mangadex``, ``weasyl``, ``zerochan``
|
||||||
* ``"gallery-dl/VERSION (by mikf)"``: ``[E621]``
|
* ``"gallery-dl/VERSION (by mikf)"``: ``[E621]``
|
||||||
* ``"net.umanle.arca.android.playstore/0.9.75"``: ``arcalive``
|
* ``"net.umanle.arca.android.playstore/0.9.75"``: ``arcalive``
|
||||||
* ``"Patreon/72.2.28 (Android; Android 14; Scale/2.10)"``: ``patreon``
|
* ``"Patreon/72.2.28 (Android; Android 14; Scale/2.10)"``: ``patreon``
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class ZerochanExtractor(BooruExtractor):
|
|||||||
per_page = 250
|
per_page = 250
|
||||||
cookies_domain = ".zerochan.net"
|
cookies_domain = ".zerochan.net"
|
||||||
cookies_names = ("z_id", "z_hash")
|
cookies_names = ("z_id", "z_hash")
|
||||||
|
useragent = util.USERAGENT
|
||||||
request_interval = (0.5, 1.5)
|
request_interval = (0.5, 1.5)
|
||||||
|
|
||||||
def login(self):
|
def login(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user