cleanup 2

This commit is contained in:
2025-10-05 22:22:04 +02:00
parent fe2df1514c
commit 85f2d2c6f7
32 changed files with 10140 additions and 11824 deletions

View File

@@ -1,11 +1,11 @@
import os
import re
import logging
from server.core.entities.series import Serie
from .entities.series import Serie
import traceback
from server.infrastructure.logging.GlobalLogger import error_logger, noKeyFound_logger
from server.core.exceptions.Exceptions import NoKeyFoundException, MatchNotFoundError
from server.infrastructure.providers.base_provider import Loader
from ..infrastructure.logging.GlobalLogger import error_logger, noKeyFound_logger
from .exceptions.Exceptions import NoKeyFoundException, MatchNotFoundError
from .providers.base_provider import Loader
class SerieScanner:

View File

@@ -1,11 +1,12 @@
"""
Core module for AniWorld application.
Contains domain entities, interfaces, use cases, and exceptions.
Contains domain entities, interfaces, application services, and exceptions.
"""
from . import entities
from . import exceptions
from . import interfaces
from . import use_cases
from . import application
from . import providers
__all__ = ['entities', 'exceptions', 'interfaces', 'use_cases']
__all__ = ['entities', 'exceptions', 'interfaces', 'application', 'providers']

View File

@@ -1,7 +1,6 @@
from server.infrastructure.providers.streaming.Provider import Provider
from server.infrastructure.providers.streaming.voe import VOE
from ..providers.streaming.Provider import Provider
from ..providers.streaming.voe import VOE
class Providers:

View File

@@ -12,8 +12,8 @@ from fake_useragent import UserAgent
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from server.infrastructure.providers.base_provider import Loader
from server.core.interfaces.providers import Providers
from .base_provider import Loader
from ..interfaces.providers import Providers
from yt_dlp import YoutubeDL
import shutil

View File

@@ -23,8 +23,8 @@ from urllib3.util.retry import Retry
from yt_dlp import YoutubeDL
import shutil
from server.infrastructure.providers.base_provider import Loader
from server.core.interfaces.providers import Providers
from .base_provider import Loader
from ..interfaces.providers import Providers
from error_handler import (
with_error_recovery,
recovery_strategies,

View File

@@ -1,5 +1,5 @@
from server.infrastructure.providers.aniworld_provider import AniworldLoader
from server.infrastructure.providers.base_provider import Loader
from .aniworld_provider import AniworldLoader
from .base_provider import Loader
class Loaders: