Skip to content

Commit

Permalink
Merge pull request #3 from OllysCoding/olly/fix-force-transcode-file
Browse files Browse the repository at this point in the history
Get correct directory for writing `.force_transcode` file
  • Loading branch information
Josh5 authored Jan 15, 2024
2 parents b6c764a + b478501 commit 8a3e2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def on_postprocessor_task_results(data):

# Mark the source file to be ignored on subsequent scans if 'force_transcode' was enabled
if settings.get_setting('force_transcode'):
cache_directory = data.get('final_cache_path')
cache_directory = os.path.dirname(data.get('final_cache_path'))
if os.path.exists(os.path.join(cache_directory, '.force_transcode')):
directory_info = UnmanicDirectoryInfo(os.path.dirname(original_source_path))
directory_info.set('video_transcoder', os.path.basename(original_source_path), 'force_transcoded')
Expand Down

0 comments on commit 8a3e2a8

Please sign in to comment.