mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor backend module architecture
This commit is contained in:
@@ -4,10 +4,10 @@ from typing import Set, Tuple, Optional, Union, List, Dict
|
||||
from torrentool.torrent import Torrent
|
||||
|
||||
from app import schemas
|
||||
from app.core.cache import FileCache
|
||||
from app.core.config import settings
|
||||
from app.core.metainfo import MetaInfo
|
||||
from app.log import logger
|
||||
from app.platform.cache import FileCache
|
||||
from app.platform.config import settings
|
||||
from app.domain.metainfo import MetaInfo
|
||||
from app.platform.log import logger
|
||||
from app.modules import _ModuleBase, _DownloaderBase
|
||||
from app.modules.rtorrent.rtorrent import Rtorrent
|
||||
from app.schemas import DownloaderTorrent
|
||||
@@ -18,7 +18,7 @@ from app.schemas.types import (
|
||||
TorrentQueryStatus,
|
||||
TorrentStatus,
|
||||
)
|
||||
from app.utils.string import StringUtils
|
||||
from app.domain.string import StringUtils
|
||||
|
||||
|
||||
class RtorrentModule(_ModuleBase, _DownloaderBase[Rtorrent]):
|
||||
|
||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
||||
from typing import Optional, Union, Tuple, List, Dict
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from app.log import logger
|
||||
from app.platform.log import logger
|
||||
|
||||
|
||||
class SCGITransport(xmlrpc.client.Transport):
|
||||
|
||||
Reference in New Issue
Block a user