Skip to content

Commit

Permalink
switch to file_out=None
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenanno committed Jun 18, 2024
1 parent 95564f2 commit eeebcb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions source/mkvpropedit/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

**<span style="color:#56adda">0.0.3</span>**

- Set file_out to None instead of creating a hardlinked copy as the file_out

**<span style="color:#56adda">0.0.2</span>**

- Fix invalid plugin tags
Expand Down
10 changes: 5 additions & 5 deletions source/mkvpropedit/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand All @@ -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

Expand All @@ -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

0 comments on commit eeebcb4

Please sign in to comment.