Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post processor script fails when file is transformed from it's original source #3

Open
kisonay opened this issue Oct 28, 2023 · 0 comments

Comments

@kisonay
Copy link

kisonay commented Oct 28, 2023

As discussed on discord: It appears that when the post-processor script plugin runs, it relies on the origin source file to be present even if the file was transformed into a different container/filename.

Relevant logs:

2023-10-28T15:43:39:INFO:Unmanic.PostProcessor - [FORMATTED] - Move file triggered by (DEFAULT) /tmp/unmanic/unmanic_file_conversion-afpbv-1698525783/2023-09-17-2259-kdaqh-1698525816.mkv --> /data/dvr/Movies/test/2023-09-17-2259.mkv

2023-10-28T15:44:44:INFO:Unmanic.EventProcessor - [FORMATTED] - Detected 'closed' event on file path '/data/dvr/Movies/test/2023-09-17-2259.mkv.unmanic.part'

2023-10-28T15:44:45:INFO:Unmanic.PostProcessor - [FORMATTED] - Removing source: /data/dvr/Movies/test/2023-09-17-2259.mpg

2023-10-28T15:17:09:ERROR:Unmanic.PluginExecutor - [FORMATTED] - Exception while carrying out 'postprocessor.task_result' plugin runner 'postprocessor_script'

Traceback (most recent call last):

  File "/usr/local/lib/python3.8/dist-packages/unmanic/libs/unplugins/executor.py", line 256, in execute_plugin_runner

    runner(data)

  File "/config/.unmanic/plugins/postprocessor_script/plugin.py", line 354, in on_postprocessor_task_results

    source_size = os.path.getsize(abspath)

  File "/usr/lib/python3.8/genericpath.py", line 50, in getsize

    return os.stat(filename).st_size

FileNotFoundError: [Errno 2] No such file or directory: "/data/dvr/Movies/test/2023-09-17-2259.mpg"

2023-10-28T15:17:09:INFO:Unmanic.PostProcessor - [FORMATTED] - Removing task cache directory '/tmp/unmanic/unmanic_file_conversion-gkgqn-1698524146'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant