This commit is contained in:
Yuvi9587
2025-08-27 19:51:42 -07:00
parent 6e993d88de
commit 65b4759bad
3 changed files with 0 additions and 19 deletions

View File

@@ -1,14 +1,9 @@
# src/core/saint2_client.py
import os
import re as re_module
import html
import urllib.parse
import requests
# ##############################################################################
# SECTION: Utility functions adapted from the original script
# ##############################################################################
PATTERN_CACHE = {}
@@ -46,10 +41,6 @@ def nameext_from_url(url):
data["filename"], data["extension"] = filename, ""
return data
# ##############################################################################
# SECTION: Extractor Logic adapted for the main application
# ##############################################################################
class BaseExtractor:
"""A simplified base class for extractors."""
def __init__(self, match, session, logger):
@@ -165,7 +156,6 @@ def fetch_saint2_data(url, logger):
if match:
extractor = extractor_cls(match, session, logger)
album_title, files = extractor.items()
# Sanitize the album title to be a valid folder name
sanitized_title = re_module.sub(r'[<>:"/\\|?*]', '_', album_title) if album_title else "saint2_download"
return sanitized_title, files