mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Rename some modules
This commit is contained in:
parent
48b4faec95
commit
91b6a64777
@ -12,8 +12,8 @@ from lxml.html import fromstring, tostring
|
|||||||
|
|
||||||
from calibre.utils.resources import get_path as P
|
from calibre.utils.resources import get_path as P
|
||||||
|
|
||||||
from .fetch import Browser
|
|
||||||
from .simple import Overseer
|
from .simple import Overseer
|
||||||
|
from .webengine_download import Browser
|
||||||
|
|
||||||
skip = ''
|
skip = ''
|
||||||
is_sanitized = 'libasan' in os.environ.get('LD_PRELOAD', '')
|
is_sanitized = 'libasan' in os.environ.get('LD_PRELOAD', '')
|
||||||
|
@ -164,13 +164,13 @@ class Browser:
|
|||||||
|
|
||||||
def run_worker(tdir: str, user_agent: str):
|
def run_worker(tdir: str, user_agent: str):
|
||||||
from calibre.utils.ipc.simple_worker import start_pipe_worker
|
from calibre.utils.ipc.simple_worker import start_pipe_worker
|
||||||
return start_pipe_worker(f'from calibre.scraper.fetch import worker; worker({tdir!r}, {user_agent!r})')
|
return start_pipe_worker(f'from calibre.scraper.webengine_download import worker; worker({tdir!r}, {user_agent!r})')
|
||||||
|
|
||||||
|
|
||||||
def worker(*args):
|
def worker(*args):
|
||||||
from calibre.gui2 import must_use_qt
|
from calibre.gui2 import must_use_qt
|
||||||
must_use_qt()
|
must_use_qt()
|
||||||
from .fetch_backend import worker
|
from .webengine_download_backend import worker
|
||||||
worker(*args)
|
worker(*args)
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user