Skip to content

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

@ausrasplex

Description

@ausrasplex

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions