change delaut captions type to .srt

This commit is contained in:
vitaliibudnyi
2026-02-21 20:12:30 +02:00
committed by Alex Shnitman
parent ce9703cd04
commit dd4e05325a
6 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ def get_opts(
format: str,
quality: str,
ytdl_opts: dict,
subtitle_format: str = "ass",
subtitle_format: str = "srt",
subtitle_language: str = "en",
subtitle_mode: str = "prefer_manual",
) -> dict:
@@ -124,7 +124,7 @@ def get_opts(
mode = _normalize_caption_mode(subtitle_mode)
language = _normalize_subtitle_language(subtitle_language)
opts["skip_download"] = True
opts["subtitlesformat"] = subtitle_format or "ass"
opts["subtitlesformat"] = subtitle_format or "srt"
if mode == "manual_only":
opts["writesubtitles"] = True
opts["writeautomaticsub"] = False
+1 -1
View File
@@ -264,7 +264,7 @@ async def add(request):
if chapter_template is None:
chapter_template = config.OUTPUT_TEMPLATE_CHAPTER
if subtitle_format is None:
subtitle_format = 'ass'
subtitle_format = 'srt'
if subtitle_language is None:
subtitle_language = 'en'
if subtitle_mode is None:
+3 -3
View File
@@ -100,7 +100,7 @@ class DownloadInfo:
playlist_item_limit,
split_by_chapters,
chapter_template,
subtitle_format="ass",
subtitle_format="srt",
subtitle_language="en",
subtitle_mode="prefer_manual",
):
@@ -139,7 +139,7 @@ class Download:
format,
quality,
ytdl_opts,
subtitle_format=getattr(info, 'subtitle_format', 'ass'),
subtitle_format=getattr(info, 'subtitle_format', 'srt'),
subtitle_language=getattr(info, 'subtitle_language', 'en'),
subtitle_mode=getattr(info, 'subtitle_mode', 'prefer_manual'),
)
@@ -701,7 +701,7 @@ class DownloadQueue:
auto_start=True,
split_by_chapters=False,
chapter_template=None,
subtitle_format="ass",
subtitle_format="srt",
subtitle_language="en",
subtitle_mode="prefer_manual",
already=None,