diff --git a/backend/main.py b/backend/main.py index 19d6856d..256ce043 100644 --- a/backend/main.py +++ b/backend/main.py @@ -9,8 +9,8 @@ from controllers.default import router as default_router from controllers.items import router as items_router from controllers.settings import router as settings_router -from controllers.webhooks import router as webhooks_router from controllers.tmdb import router as tmdb_router +from controllers.webhooks import router as webhooks_router from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from program import Program diff --git a/backend/program/downloaders/realdebrid.py b/backend/program/downloaders/realdebrid.py index 1527386c..5821bf00 100644 --- a/backend/program/downloaders/realdebrid.py +++ b/backend/program/downloaders/realdebrid.py @@ -7,14 +7,13 @@ from types import SimpleNamespace from typing import Generator, List, Union -import regex from program.media.item import Episode, MediaItem, Movie, Season, Show from program.media.state import States from program.settings.manager import settings_manager from requests import ConnectTimeout -from RTN import extract_episodes, parsett from RTN.exceptions import GarbageTorrent -from RTN.parser import parse, title_match +from RTN.parser import parse +from RTN.patterns import extract_episodes from utils.logger import logger from utils.request import get, ping, post