Fix queue file config and remove print for codec

master
Alexandru Pisarenco 5 years ago
parent 2f8af4c7ba
commit f9ad8c053a

@ -39,5 +39,5 @@ for dir, dirs, files in os.walk(str(Config.BASE_PATH)):
print(" ... added") print(" ... added")
jobs.append(item) jobs.append(item)
with open("queue.json", "w") as fp: with open(Config.QUEUE_FILE, "w") as fp:
json.dump(jobs, fp, default=lambda o: getattr(o, 'as_dict', str)(), indent=2) json.dump(jobs, fp, default=lambda o: getattr(o, 'as_dict', str)(), indent=2)

@ -204,7 +204,6 @@ class MediaInfo:
@property @property
def output_bitrate(self) -> int: def output_bitrate(self) -> int:
print(self.codec)
if self.codec == "MPEG-4 Visual": if self.codec == "MPEG-4 Visual":
translations = [ translations = [
Translation(0, 800, 0.5, 200, 600), Translation(0, 800, 0.5, 200, 600),

Loading…
Cancel
Save