unsortedFormat, or something similar possible?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
wittless
Posts: 1
Joined: 18 Nov 2015, 23:36

unsortedFormat, or something similar possible?

Post by wittless »

I am currently running a transmission post process script using fn:amc that works beautifully except for the files that can't be found. The files in the Unsorted folder end up being shoved several subdirectories too deep.

For example, if I have a file such as, /torrent/Complete/Movie/movie.rar, the result in the Unsorted directory will be /output-path/Unsorted/Movie/movie/Movie/movie.mp4. What I would like to see is /output-path/Unsorted/Movie/movie.mp4. Is there a way to fix that? Or is there a smarter way accomplish what I am trying to do?

For reference, I am using the following command:

Code: Select all

filebot.sh -script fn:amc --output "/torrent/Complete" --log-file amc.log --action move --conflict override -non-strict --def artwork=n --def "unsorted=y" "clean=y" "movieFormat=/output-path/{n} {y}" "seriesFormat=/output-path/{n}-{s00e00}-{t}" "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" 
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unsortedFormat, or something similar possible?

Post by rednoah »

This is the default:

Code: Select all

--def unsortedFormat="Unsorted/{file.structurePathTail}"
File.getStructurePathTail() is a method provided by FileBot that will get you the path of the media file relative to the media root folder, like "Media", "Complete", etc
:idea: Please read the FAQ and How to Request Help.
Post Reply