Fix queue file config and remove print for codec
This commit is contained in:
2
main.py
2
main.py
@@ -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)
|
||||||
|
|||||||
1
minfo.py
1
minfo.py
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user