1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

update default user-agent string (closes #122)

This commit is contained in:
Mike Fährmann 2018-11-11 10:07:10 +01:00
parent 7e2d6bcd62
commit 2fa28a2609
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ extractor.*.user-agent
----------------------
=========== =====
Type ``string``
Default ``"Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"``
Default ``"Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0"``
Description User-Agent header value to be used for HTTP requests.
Note: This option has no effect on `pixiv` and

View File

@ -8,7 +8,7 @@
"proxy": null,
"skip": true,
"sleep": 0,
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0",
"artstation":
{

View File

@ -109,8 +109,8 @@ class Extractor():
"""Set additional headers for the 'session' object"""
self.session.headers["Accept-Language"] = "en-US,en;q=0.5"
self.session.headers["User-Agent"] = self.config(
"user-agent", ("Mozilla/5.0 (X11; Linux x86_64; rv:54.0) "
"Gecko/20100101 Firefox/54.0"))
"user-agent", ("Mozilla/5.0 (X11; Linux x86_64; rv:62.0) "
"Gecko/20100101 Firefox/62.0"))
def _set_cookies(self):
"""Populate the session's cookiejar"""