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

[Bug] Deluge not able to run Filebot Command #105

Open
ausrasplex opened this issue Jan 26, 2024 · 1 comment
Open

[Bug] Deluge not able to run Filebot Command #105

ausrasplex opened this issue Jan 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ausrasplex
Copy link

ausrasplex commented Jan 26, 2024

Current Behavior

I currently have Deluge setup with Execute plugin to run a .bash file when a torrent completes.

The issue being is I receive an error message stating filebot: command not found even though the FileBot is installed.

The .bash file has the following code:

HASH!/bin/bash

torrent_name="$2"
torrent_path="$3/$2"
timestamp=$(date +%c)
echo "$timestamp" "$torrent_name" "$torrent_path" >> RunFileBot.log

filebot -script 'fn:amc'
--output "/mnt/user/Downloads/_OUTPUT"
--action move
--conflict skip -non-strict
--order Airdate
--lang en
--def ut_dir="$torrent_path"
--def ut_title="$torrent_name"
--def music="n"
--def clean="y"
--def ignore=".jpg|.txt"
--def seriesFormat="/storage/data/Plex/TV Shows/{ ~plex.id * { ' [$vc]' } }"
--def movieFormat="/storage/data/Plex/Movies/{ ~plex.id * { ' {edition-$edition}' } * { ' [$vc]' } % { ' {edition-$edition}' } }"
--def movieDB="TheMovieDB"
--def seriesDB="TheMovieDB:TV"
--def subtitles="eng"
--def excludeList=".excludes"
--apply refresh
--log all
--log-file /mnt/user/appdata/Filebot/logs/filebot.log;

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS: Unraid
  • OS version: 6.12.6
  • CPU: AMD Ryzen 3600
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

Web capture_26-1-2024_145941_192 168 0 101

Container log

14:17:39 [WARNING ][deluge_execute.core           :1622] Command "/config/RunFileBot.bash" failed with exit code 127
14:17:39 [WARNING ][deluge_execute.core           :1622] stderr: b'/config/RunFileBot.bash: line 11: filebot: command not found\n'

Container inspect

No response

Anything else?

Is there any way to specify the exact filebot file location in the bash file for it to find the commands?

@ausrasplex ausrasplex added the bug Something isn't working label Jan 26, 2024
@jlesage
Copy link
Owner

jlesage commented Jan 26, 2024

You are using 2 containers. Looks like you want to call the binary of a container from another one ? This is not possible.

It seems that you already configured AMC (Automated Media Center) from FileBot. Thus, if the deluge container put downloaded files to /mnt/user/data/Downloads/_COMPLETED/, they will processed by the FileBot container automatically. There is no bash script to call from deluge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants