diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7337cd5c2..219978069 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: build1: strategy: matrix: - python-version: ['3.10'] + python-version: ['3.12'] runs-on: ubuntu-latest timeout-minutes: 20 steps: diff --git a/auto_editor/edit.py b/auto_editor/edit.py index 74bfb0d19..a94dde0bb 100644 --- a/auto_editor/edit.py +++ b/auto_editor/edit.py @@ -292,13 +292,14 @@ def make_media(tl: v3, output: str) -> None: log.conwrite("Writing output file") - making_subs = ctr.allow_subtitle and not args.sn + number_subs = 0 if tl.v1 is None else len(tl.v1.source.subtitles) + making_subs = number_subs > 0 and ctr.allow_subtitle and not args.sn old_out = os.path.join(temp, f"oldout.{out_ext}") mux_quality_media( ffmpeg, visual_output, audio_output, - 0 if tl.v1 is None else len(tl.v1.source.subtitles), + number_subs, apply_later, ctr, old_out if making_subs else output,