Running FileBot from the console, Groovy scripting, shell scripts, etc
nekromantik
Posts: 22 Joined: 13 Jul 2015, 21:25
Post
by nekromantik » 29 Jul 2015, 21:40
Hi
I got Filebot installed on my NAS and it works mostly but I added custom Movie format so that it creates folders with movie name if the original file was not in its own folder.
However it only uses Series format and ignores movies. Will this still work for movies which already have a folder or will it create duplicate folders?
Here is the code:
Code: Select all
filebot.sh -script fn:amc --output "/volume1/Stuff" --log-file amc.log --action move --conflict override -non-strict --def music=n artwork=n "seriesFormat=/volume1/Stuff/TV/{n}/{episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}" "movieFormat=/volume1/Stuff/Movies/{n} {y}/{n} ({y}) {sdhd}"
'
rednoah
The Source
Posts: 23953 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 29 Jul 2015, 21:55
Log?
nekromantik
Posts: 22 Joined: 13 Jul 2015, 21:25
Post
by nekromantik » 29 Jul 2015, 22:04
If you mean exec log:
Parameter: seriesFormat = /volume1/Stuff/TV/{n}/{episode.special ? 'Special' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}
Parameter: movieFormat = /volume1/Stuff/Movies/{n} ({y}) {sdhd}
Parameter: ut_dir = /volume1/Stuff/downloads/Unfriended.mp4
Parameter: ut_kind = multi
Parameter: ut_title = Unfriended.mp4
Parameter: ut_label =
Parameter: excludeList = amc.txt
Using excludes: /volume1/Stuff/amc.txt (99)
Input: /volume1/Stuff/downloads/Unfriended.mp4
Unfriended.mp4 [series: null, movie: Unfriended (2015)]
Group: [tvs:null, mov:unfriended 2015, anime:null] => [Unfriended.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/Stuff/downloads/Unfriended.mp4]
[MOVE] Rename [/volume1/Stuff/downloads/Unfriended.mp4] to [/volume1/Stuff/Movies/Unfriended (2015).mp4]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
nekromantik
Posts: 22 Joined: 13 Jul 2015, 21:25
Post
by nekromantik » 29 Jul 2015, 22:38
Thanks
How do I let it only create a folder for a movie if folder does not exist?
rednoah
The Source
Posts: 23953 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 29 Jul 2015, 23:07
If you want a movie folder, specify a folder in the format:
Code: Select all
/volume1/Stuff/Movies/{n} ({y})/{n} ({y}) {sdhd}
You can check if a certain folder exists in your format, but that's about it. You can't mess with the processing flow form within the format.