Hi Matt
In order to answer this correctly we would need to know the OS you are using
MS DOS you could write a BAT file using your code eg tvtest.bat would
consist of
filebot -rename /volume1/downloads/tv/* -r --db TheTVDB --lang en --output "/volume1/video/TV Shows/" --format "{n.ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}/Season {s.pad(2)}/{n.space('.').ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.').ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}" -non-strict --action test
You would then run the BAT file from your prompt.
If its a Linux based system you could create a bash script called tvtest using a text editor nano vi etc
#!/bin/bash
filebot -rename /volume1/downloads/tv/* -r --db TheTVDB --lang en --output "/volume1/video/TV Shows/" --format "{n.ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}/Season {s.pad(2)}/{n.space('.').ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.').ascii().replaceAll(/[\`\´\‘\’\ʻ]/, \"'\")}" -non-strict --action test
save and exit editor
chmod 755 tvtest
run tvtest
./tvtest
You may need to put the full path to filebot to get this type "which filebot" at the prompt the full path will be displayed.
Hope that helps
Martyn
Make alias or feed arguments from file
Re: Make alias or feed arguments from file
Just create some amc.sh script and call filebot with predefined arguments, plus whatever you pass along when calling the script via "$@".
Here's what I use:
Here's what I use:
Code: Select all
filebot -script dev:amc -non-strict --log-file amc.log --def artwork=y "seriesFormat=TV Shows/{n}/{'Season '+s.pad(2)}/{n} - {s00e00} - {t} {[vc, resolution, (seconds/60).toFloat().round(1)+' min']}" "movieFormat=Movies/{n} ({y})/{n} ({y}){' CD'+pi} {[vc, resolution, (seconds/60).toFloat().round(1)+' min']}" "ignore=[.](srt|sub|idx)" --output /mnt/sdc1/rednoah/media --action test "$@"