mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Updating default user agent.
This commit is contained in:
parent
bd21aa1ed8
commit
b98ded62e2
2 changed files with 5 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ from wrolpi.db import optional_session, get_db_session
|
|||
from wrolpi.downloader import Downloader, Download, DownloadResult
|
||||
from wrolpi.errors import UnrecoverableDownloadError
|
||||
from wrolpi.files.models import FileGroup
|
||||
from wrolpi.vars import PYTEST, DOCKERIZED, USER_AGENT
|
||||
from wrolpi.vars import PYTEST, DOCKERIZED, DOWNLOAD_USER_AGENT
|
||||
from . import lib
|
||||
from .api import archive_bp # noqa
|
||||
from .errors import InvalidArchive
|
||||
|
|
@ -76,7 +76,7 @@ class ArchiveDownloader(Downloader, ABC):
|
|||
str(SINGLE_FILE_BIN),
|
||||
'--browser-executable-path', CHROMIUM,
|
||||
'--browser-args', '["--no-sandbox"]',
|
||||
'--user-agent', USER_AGENT,
|
||||
'--user-agent', DOWNLOAD_USER_AGENT,
|
||||
'--dump-content',
|
||||
'--load-deferred-images-dispatch-scroll-event',
|
||||
download.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue