docs: Update README with v0.2.25 changelog

This commit is contained in:
2026-01-08 21:11:08 +09:00
parent c0a0f1ff2d
commit 7beb536ca0
4 changed files with 9 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ def get_downloader(source_type: str) -> Optional[BaseDownloader]:
from .ytdlp_aria2 import YtdlpAria2Downloader
return YtdlpAria2Downloader()
elif source_type in ('ohli24', 'hls'):
elif source_type in ('ohli24', 'ani24', 'hls'):
from .ffmpeg_hls import FfmpegHlsDownloader
return FfmpegHlsDownloader()

View File

@@ -80,13 +80,13 @@ class FfmpegHlsDownloader(BaseDownloader):
except Exception as ce:
logger.error(f"Failed to read cookies_file: {ce}")
# 입력 전 설정 (Reconnection & HTTP persistence fix)
# 입력 전 설정 (Reconnection & Allowed extensions for non-standard m3u8 like .txt)
cmd.extend([
'-allowed_extensions', 'ALL',
'-reconnect', '1',
'-reconnect_at_eof', '1',
'-reconnect_streamed', '1',
'-reconnect_delay_max', '5',
'-http_persistent', '0'
'-reconnect_delay_max', '5'
])
# 입력 URL
@@ -178,7 +178,8 @@ class FfmpegHlsDownloader(BaseDownloader):
def _get_duration(self, url: str, ffprobe_path: str, headers: Dict) -> float:
"""ffprobe로 영상 길이 획득"""
try:
cmd = [ffprobe_path, '-v', 'error', '-show_entries', 'format=duration',
cmd = [ffprobe_path, '-v', 'error', '-allowed_extensions', 'ALL',
'-show_entries', 'format=duration',
'-of', 'default=noprint_wrappers=1:nokey=1']
if headers: