]> git.parisson.com Git - telemeta.git/commitdiff
force mp3 reencode
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2015 00:36:20 +0000 (01:36 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 15 Jan 2015 00:36:20 +0000 (01:36 +0100)
tools/scripts/transcode/remux_fix_media.py

index 0d5056725436b08650e0c25918352c2bcf3b722d..39cfd9f1f1d4a199672c940eab2f2cbf146f62c2 100755 (executable)
@@ -28,14 +28,14 @@ class FixCheckMedia(object):
                     dir_files = os.listdir(root)
 
                     if not webm_fixed_log in dir_files:
-                        print source    
+                        print source
                         self.fix_webm(source)
                         f = open(root + os.sep + webm_fixed_log, 'w')
                         f.close()
                         if os.path.exists(root + os.sep + webm_tofix_log):
                             os.remove(root + os.sep + webm_tofix_log)
-            
-                    if mp3_tofix_log in dir_files and not mp3_fixed_log in dir_files:
+
+                    if mp3_tofix_log in dir_files or not mp3_fixed_log in dir_files:
                         for file in dir_files:
                             dest_ext = os.path.splitext(file)[1][1:]
                             if dest_ext == 'mp3':