self.logger.logger.info(command)
os.system(command)
- def touch_file(self, path):
- file = open(path, 'w')
+ def touch(self, file):
+ file = open(file, 'w')
file.close()
def remux(self, file):
log = file + '.log'
if os.path.getsize(file) and not os.path.exists(log):
self.double_remux(file)
- self.touch_file(log)
+ self.touch(log)
def transcode(self, file, offset=None):
+ log = file + '.log'
filename, ext = os.path.splitext(file)
for dest_format in self.dest_formats:
ffmpeg_args = self.dest_formats[dest_format]
if not self.dry_run_mode:
os.system(command)
+ self.touch(log)
+
def is_processed(self, source_files):
processed = False
for file in source_files: