Add local proxy

This commit is contained in:
EstrellaXD
2023-04-26 12:16:16 +08:00
parent 85ff3acf3b
commit d26d31635f
5 changed files with 22 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ from module.core.download_client import DownloadClient
logger = logging.getLogger(__name__)
SEARCH_KEY = ["group", "title_raw", "season_raw", "subtitle", "source", "dpi"]
CUSTOM_URL = "mikanani.me" if settings.rss_parser.custom_url == "" else settings.rss_parser.custom_url
CUSTOM_URL = "https://mikanani.me" if settings.rss_parser.custom_url == "" else settings.rss_parser.custom_url
class FullSeasonGet:
@@ -26,7 +26,7 @@ class FullSeasonGet:
def get_season_torrents(self, data: dict):
keyword = self.init_eps_complete_search_str(data)
with RequestContent() as req:
torrents = req.get_torrents(f"https://{CUSTOM_URL}/RSS/Search?searchstr={keyword}")
torrents = req.get_torrents(f"{CUSTOM_URL}/RSS/Search?searchstr={keyword}")
return torrents
@staticmethod