Migrate imports to SYS package (pipeline/result_table) and update related imports
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -206,8 +206,8 @@ class Bandcamp(Provider):
|
||||
|
||||
# Build a new table from artist discography.
|
||||
try:
|
||||
from result_table import ResultTable
|
||||
from rich_display import stdout_console
|
||||
from SYS.result_table import ResultTable
|
||||
from SYS.rich_display import stdout_console
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class FileIO(Provider):
|
||||
|
||||
def upload(self, file_path: str, **kwargs: Any) -> str:
|
||||
from API.HTTP import HTTPClient
|
||||
from models import ProgressFileReader
|
||||
from SYS.models import ProgressFileReader
|
||||
|
||||
if not os.path.exists(file_path):
|
||||
raise FileNotFoundError(f"File not found: {file_path}")
|
||||
|
||||
@@ -13,7 +13,7 @@ from urllib.parse import urljoin, urlparse, unquote
|
||||
from ProviderCore.base import Provider, SearchResult
|
||||
from ProviderCore.download import sanitize_filename
|
||||
from SYS.logger import log
|
||||
from models import ProgressBar
|
||||
from SYS.models import ProgressBar
|
||||
|
||||
# Optional dependency for HTML scraping fallbacks
|
||||
try:
|
||||
|
||||
@@ -359,7 +359,7 @@ class Matrix(Provider):
|
||||
|
||||
def upload_to_room(self, file_path: str, room_id: str, **kwargs: Any) -> str:
|
||||
"""Upload a file and send it to a specific room."""
|
||||
from models import ProgressFileReader
|
||||
from SYS.models import ProgressFileReader
|
||||
|
||||
path = Path(file_path)
|
||||
if not path.exists():
|
||||
|
||||
@@ -13,7 +13,7 @@ from typing import Any, Dict, List, Optional
|
||||
|
||||
from ProviderCore.base import Provider, SearchResult
|
||||
from SYS.logger import log, debug
|
||||
from models import ProgressBar
|
||||
from SYS.models import ProgressBar
|
||||
|
||||
_SOULSEEK_NOISE_SUBSTRINGS = (
|
||||
"search reply ticket does not match any search request",
|
||||
|
||||
@@ -1058,7 +1058,7 @@ class Telegram(Provider):
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
from models import ProgressBar
|
||||
from SYS.models import ProgressBar
|
||||
|
||||
progress_bar = ProgressBar()
|
||||
last_print = {
|
||||
|
||||
@@ -13,7 +13,7 @@ class ZeroXZero(Provider):
|
||||
|
||||
def upload(self, file_path: str, **kwargs: Any) -> str:
|
||||
from API.HTTP import HTTPClient
|
||||
from models import ProgressFileReader
|
||||
from SYS.models import ProgressFileReader
|
||||
|
||||
if not os.path.exists(file_path):
|
||||
raise FileNotFoundError(f"File not found: {file_path}")
|
||||
|
||||
Reference in New Issue
Block a user