Manually burn-in subtitles only if no pre-burned video is available (#268)

This commit is contained in:
bytedream 2023-11-19 19:24:15 +01:00
parent 14e71c05b8
commit 2c37093959
5 changed files with 88 additions and 14 deletions

View file

@ -248,7 +248,8 @@ async fn get_format(
for single_format in single_formats {
let stream = single_format.stream().await?;
let Some((video, audio)) = variant_data_from_stream(&stream, &archive.resolution).await?
let Some((video, audio, _)) =
variant_data_from_stream(&stream, &archive.resolution, None).await?
else {
if single_format.is_episode() {
bail!(