]> git.parisson.com Git - telecaster-server.git/commitdiff
add remux log
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 10:59:16 +0000 (12:59 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 10:59:16 +0000 (12:59 +0200)
bin/mastering/mastering.py

index d8816f80d48219e551f85289c57b841602c7483b..a858c0619b6ac4d46757def9678b6e2e86acc731 100755 (executable)
@@ -115,8 +115,11 @@ class TeleCasterMastering(object):
     def remux(self, file):
         log = file + '.log'
         if os.path.getsize(file) and not os.path.exists(log):
+            if self.verbose_mode:
+                print("remuxing", file)
             self.double_remux(file)
             self.touch_file(log)
+            self.logger.logger.info("remuxed", file)
 
     def transcode(self, file, offset=None):
         filename, ext = os.path.splitext(file)
@@ -152,9 +155,6 @@ class TeleCasterMastering(object):
                     if ext[1:] in self.source_formats:
                         source_files.append(path + os.sep + file)
 
-                if self.verbose_mode:
-                    print(source_files)
-
                 if source_files:
                     offsets = {}
                     if len(source_files) > 1 and self.auto_offset_mode: