@@ -619,7 +619,8 @@ def main(argv=sys.argv[1:]):
619619 for i , (seg_n , time , name ) in enumerate (TOC ):
620620 LOG .debug ("TOC entry %s %s" , time , name )
621621 new_time = map_time (seg_n , segment_list , time )
622- print (humantime (new_time ), name )
622+ if not args .quiet :
623+ print (humantime (new_time ), name )
623624 toc .append (f"{ humantime (new_time )} { name } " )
624625 chapter_file_f .write (f'CHAPTER{ i + 1 :02d} ={ humantime (new_time , show_hour = True )} .000\n ' )
625626 chapter_file_f .write (f'CHAPTER{ i + 1 :02d} NAME={ name } \n ' )
@@ -643,7 +644,7 @@ def main(argv=sys.argv[1:]):
643644 cmd_merge = ['mkvmerge' , output_raw , srt_output ,
644645 '-o' , output ,
645646 ]
646- print ( cmd_merge )
647+ LOG . info ( shell_join ( cmd_merge ) )
647648 if (not args .check ) or output_raw .exists ():
648649 subprocess .check_call (cmd_merge )
649650 #shutil.move(tmpdir_out, output)
@@ -660,7 +661,7 @@ def main(argv=sys.argv[1:]):
660661 * (['--chapters' , str (chapter_file ),] if toc else []),
661662 * (['--attachment-name' , 'description' , '--add-attachment' , video_description_file ] if video_description else []),
662663 ]
663- print ( cmd_propedit )
664+ LOG . info ( shell_join ( cmd_propedit ) )
664665 if (not args .check ) or output_raw .exists ():
665666 subprocess .check_call (cmd_propedit )
666667
0 commit comments