Linux mediaserver filebot commands sanity check

Support for Ubuntu and other Desktop Linux distributions
Post Reply
drewb0y
Posts: 3
Joined: 15 Aug 2023, 16:09

Linux mediaserver filebot commands sanity check

Post by drewb0y »

So I have a Jellyfin server running on debian that I want to clean up the media files in.
I'd like to do it command line via ssh but I'm having a difficult time figuring out the proper commands. I played with the windows client and that's super easy but I'd llike to avoid having to transfer all the files back and forth.
My game plan on the server side is to transfer files I want to process into a temporary folder for input processing located at /mnt/shared/Media/Process/input
I want to rename folders and files using jellyfin.id format
I want filebot to move the processed files into the /mnt/shared/Media/Process/Done directory in either the Movies subfolder or the Series subfolder depending on what it is
So I came up with this args.txt file and plan on just running

Code: Select all

filebot @args.txt
Does this look correct?

Code: Select all

-script
fn:amc
/mnt/shared/Media/Process/input
--output
/mnt/shared/Media/Process/Done
--action
duplicate -non-strict
--def
movieDB=TheMovieDB 
seriesDB=TheMovieDB::TV 
movieFormat=Movies/{ ~jellyfin.id } 
seriesFormat=Series/{ ~jellyfin.id }
Also how would I add Post processing options to this like Fetch Artwork, Fetch Cover Images and Fetch subtitle files?

Thanks in advance!
drewb0y
Posts: 3
Joined: 15 Aug 2023, 16:09

Re: Linux mediaserver filebot commands sanity check

Post by drewb0y »

Among some other errors, when I try to run this at the end I get

Code: Select all

Invalid --action value: 'duplicate -non-strict': duplicate -non-strict not in [MOVE, COPY, KEEPLINK, SYMLINK, HARDLINK, CLONE, DUPLICATE, TEST]
Failure (×_×)⌒☆
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Linux mediaserver filebot commands sanity check

Post by rednoah »

NO:

Code: Select all

--action
duplicate -non-strict
YES:

Code: Select all

--action
duplicate
-non-strict
Because 1 argument per line.


:idea: Use --action TEST (that's 2 lines in @files) to do a dry run and see what happens.


:idea: You can add the --apply option to enable post-processing features:

Code: Select all

--apply
artwork
nfo
:idea: Please read the FAQ and How to Request Help.
drewb0y
Posts: 3
Joined: 15 Aug 2023, 16:09

Re: Linux mediaserver filebot commands sanity check

Post by drewb0y »

Fixed the invalid action error by moving the -non-strict down to the next line

also added the java locale to /etc/profile to get rid of the locale error as in viewtopic.php?p=59186&hilit=Please+conf ... F+8#p59186

now once I'm confident it's doing what I want - I can switch from duplicate to move

Code: Select all

-script
fn:amc
/mnt/shared/Media/Process/input
--output
/mnt/shared/Media/Process/Done
--log-file
/root/amc.log
--action
duplicate
-non-strict
--def
movieDB=TheMovieDB
seriesDB=TheMovieDB::TV
movieFormat=Movies/{ ~jellyfin.id }
seriesFormat=Series/{ ~jellyfin.id }
Post Reply