feat: implemented unified downloading

This commit is contained in:
2026-03-08 22:39:22 +01:00
parent f4dee850f3
commit 4609112d07
8 changed files with 465 additions and 49 deletions

View File

@@ -26,6 +26,7 @@ import subprocess
import sys
from monochrome import fetch, fetch_json, discover_instances, SSL_CTX, QOBUZ_API
from utils import sanitize_filename
def extract_stream_url_from_manifest(manifest_b64, log=None):
@@ -360,9 +361,6 @@ def embed_metadata(file_path, info, cover_data=None, log=None):
log(f"[!] Failed to embed metadata: {e}")
def sanitize_filename(name):
return re.sub(r'[<>:"/\\|?*]', '_', name)
def convert_to_mp3(input_path, output_path, bitrate="320k", log=None):
"""Convert audio file to MP3 using ffmpeg."""