File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 18
18
build1 :
19
19
strategy :
20
20
matrix :
21
- python-version : ['3.10 ']
21
+ python-version : ['3.12 ']
22
22
runs-on : ubuntu-latest
23
23
timeout-minutes : 20
24
24
steps :
Original file line number Diff line number Diff line change @@ -292,13 +292,14 @@ def make_media(tl: v3, output: str) -> None:
292
292
293
293
log .conwrite ("Writing output file" )
294
294
295
- making_subs = ctr .allow_subtitle and not args .sn
295
+ number_subs = 0 if tl .v1 is None else len (tl .v1 .source .subtitles )
296
+ making_subs = number_subs > 0 and ctr .allow_subtitle and not args .sn
296
297
old_out = os .path .join (temp , f"oldout.{ out_ext } " )
297
298
mux_quality_media (
298
299
ffmpeg ,
299
300
visual_output ,
300
301
audio_output ,
301
- 0 if tl . v1 is None else len ( tl . v1 . source . subtitles ) ,
302
+ number_subs ,
302
303
apply_later ,
303
304
ctr ,
304
305
old_out if making_subs else output ,
You can’t perform that action at this time.
0 commit comments