feat: Enhance yt-dlp downloader with auto-installation, adaptive HLS download strategies, CDN-specific headers, and improved ffmpeg progress tracking.

This commit is contained in:
2025-12-28 23:22:36 +09:00
parent 028562ea18
commit bb4f2797c1
7 changed files with 524 additions and 78 deletions

View File

@@ -31,7 +31,12 @@ def extract_aldata(detail_url: str, episode_num: str) -> dict:
try:
# Camoufox 시작 (자동 fingerprint 생성)
with Camoufox(headless=False) as browser:
# Docker/서버 환경에서는 DISPLAY가 없으므로 headless 모드 사용
import os
has_display = os.environ.get('DISPLAY') is not None
use_headless = not has_display
with Camoufox(headless=use_headless) as browser:
page = browser.new_page()
try: