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

This commit is contained in:
2025-12-29 23:28:15 -08:00
parent 30d3bf480b
commit ef01ca03a0
60 changed files with 162 additions and 149 deletions

View File

@@ -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

View File

@@ -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}")

View File

@@ -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:

View File

@@ -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():

View File

@@ -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",

View File

@@ -1058,7 +1058,7 @@ class Telegram(Provider):
except Exception:
pass
from models import ProgressBar
from SYS.models import ProgressBar
progress_bar = ProgressBar()
last_print = {

View File

@@ -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}")