]> git.parisson.com Git - telemeta.git/commitdiff
fix mp3 flag
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 4 Dec 2013 21:27:30 +0000 (22:27 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 4 Dec 2013 21:27:30 +0000 (22:27 +0100)
tools/scripts/transcode/remux_fix_media.py

index ac20e468ebf43c0d01c0f90c83a576f9727f087b..0d5056725436b08650e0c25918352c2bcf3b722d 100755 (executable)
@@ -44,7 +44,8 @@ class FixCheckMedia(object):
                                 self.fix_mp3(source, dest)
                                 f = open(root + os.sep + mp3_fixed_log, 'w')
                                 f.close()
-                                os.remove(root + os.sep + mp3_tofix_log)
+                                if os.path.exists(root + os.sep + mp3_tofix_log):
+                                    os.remove(root + os.sep + mp3_tofix_log)
                                 #break