@@ -26,7 +26,7 @@ def convert_subtitles_to_webvtt(input_file, output_file):
2626
2727 """
2828 cmd = ["ffmpeg" , "-n" , "-sub_charenc" , "UTF-8" , "-i" , input_file , output_file ]
29- if ( os .path .isfile (output_file ) is False ):
29+ if not os .path .isfile (output_file ):
3030 run_ffmpeg_process (cmd )
3131
3232
@@ -43,7 +43,7 @@ def extract_subtitle(input_file, output_file):
4343
4444 """
4545 cmd = ["ffmpeg" , "-n" , "-sub_charenc" , "UTF-8" , "-i" , input_file , "-map" , "0:s:0" , output_file ]
46- if ( os .path .isfile (output_file ) is False ):
46+ if not os .path .isfile (output_file ):
4747 run_ffmpeg_process (cmd )
4848
4949
@@ -68,7 +68,7 @@ def transmux_to_mp4(input_file, output_file, with_audio_reencode=False):
6868 cmd = ["ffmpeg" , "-i" , input_file ,
6969 "-codec" , "copy" , "-movflags" , "+faststart" , output_file ]
7070
71- if ( os .path .isfile (output_file ) is False ):
71+ if not os .path .isfile (output_file ):
7272 run_ffmpeg_process (cmd )
7373
7474
@@ -88,5 +88,5 @@ def generate_thumbnail(input_file, duration, output_file):
8888 """
8989 cmd = ["ffmpeg" , "-ss" , str (duration / 2.0 ), "-i" , input_file , "-an" , "-vf" , "scale=320:-1" ,
9090 "-vframes" , "1" , output_file ]
91- if ( os .path .isfile (output_file ) is False ):
91+ if not os .path .isfile (output_file ):
9292 run_ffmpeg_process (cmd )
0 commit comments