From eeebcb467bddd1ae7bf4f949c0ac5636c5883360 Mon Sep 17 00:00:00 2001 From: mmenanno <1358708+mmenanno@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:48:20 -0400 Subject: [PATCH 1/2] switch to file_out=None --- source/mkvpropedit/changelog.md | 5 +++++ source/mkvpropedit/plugin.py | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/source/mkvpropedit/changelog.md b/source/mkvpropedit/changelog.md index 802fc3957..fe0795a67 100644 --- a/source/mkvpropedit/changelog.md +++ b/source/mkvpropedit/changelog.md @@ -1,3 +1,8 @@ + +**0.0.3** + +- Set file_out to None instead of creating a hardlinked copy as the file_out + **0.0.2** - Fix invalid plugin tags diff --git a/source/mkvpropedit/plugin.py b/source/mkvpropedit/plugin.py index 6efc9c16f..c092aca7f 100644 --- a/source/mkvpropedit/plugin.py +++ b/source/mkvpropedit/plugin.py @@ -144,9 +144,6 @@ def create_xml_tags_file(): tree.write(tags_filename) def process_file(): - # Copy the input file to the output file - os.link(data.get('file_in'), data.get('file_out')) - # Start off with calling mkvpropedit command = ['mkvpropedit'] @@ -162,10 +159,10 @@ def process_file(): command.extend(other_args.split()) # Pass in working file name - command.append(data.get('file_out')) + command.append(data.get('file_in')) # Execute the command - if command == ['mkvpropedit', data.get('file_out')]: + if command == ['mkvpropedit', data.get('file_in')]: logger.error("No arguments provided for mkvpropedit, skipping...") return @@ -180,4 +177,7 @@ def process_file(): data['command_progress_parser'] = parse_progress + # Set the output file to None since mkvpropedit does not create a new file + data['file_out'] = None + return data From 2a4500ca5701604d4a5aa1e0de2a88effd9b1932 Mon Sep 17 00:00:00 2001 From: mmenanno <1358708+mmenanno@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:09:16 -0400 Subject: [PATCH 2/2] bump version to 0.0.3 --- source/mkvpropedit/info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mkvpropedit/info.json b/source/mkvpropedit/info.json index 351af954f..2c67d2b57 100644 --- a/source/mkvpropedit/info.json +++ b/source/mkvpropedit/info.json @@ -9,5 +9,5 @@ "on_worker_process": 99 }, "tags": "command, mkv, tweaks", - "version": "0.0.2" + "version": "0.0.3" }