The second snippet works except movies starting with "A" or "The" etc (filing it into /A/ or /T/ respectfully).
The following worked for me:
Code: Select all
{n.replaceFirst(/(?i)(The |A |An |)(.).*/, /$2/)}
Code: Select all
{n.replaceFirst(/(?i)(The |A |An |)(.).*/, /$2/)}
Code: Select all
{ n =~ /^\d/ ? 'A-Z' : n[0] }
Code: Select all
{ n =~ /^\d/ ? 'A-Z' : n.replaceFirst(/(?i)(The |A |An |)(.).*/, /$2/) }
Code: Select all
curl "somethingsomething/post" --data-urlencode "file=${file}" --data-urlencode dir="$(basename ${file})" --data-urlencode output=/Media --data-urlencode label=tv_shows --data @<(mediainfo --full --output=xml "${file}")
That is what the code above does:
Code: Select all
{ json('http://localhost:8080/'.toURL(f:f, time:System.currentTimeMillis())) }
Code: Select all
"c:\Program Files\FileBot\filebot.exe" -script fn:amc --output "n:/media/tv" --action move -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt --def seriesFormat="{n}/{n} - {s00e00} - {t}" clean=y kodi=kodi:[email protected]:8081
"c:\Program Files\FileBot\filebot.exe" -script fn:amc --output "n:/media/moviestowatch" --action move -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt --def subtitles=en --def seriesFormat="{n} ({y}) - {rating}" clean=y kodi=kodi:[email protected]:8081
Code: Select all
filebot -script fn:amc --output "N:/Plex" --action duplicate -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt
This is the default behaviour. If all your files are mixed, then a single amc script call is your only option. You can have separate filebot -rename calls (i.e. not amc script calls) for separately processing movie files and episode files, but for that to make sense your files would have to be separated into folders already, one input folder that only contains movies and one input folder that only contains episodes.
Just windows explorer, i created a movie library and added different paths that correspond to the categories i want
Code: Select all
filebot -script fn:amc --output /mnt/TV_Shows --action duplicate -non-strict /home/alittler/Downloads --def movieFormat=/mnt/Movies_Other/{plex} seriesFormat=/mnt/TV_Shows/{plex} --def plex=192.168.1.123:duhhhhhhhhh --def clean=y --def unsorted=y --log-file amc.log --def excludeList=amc.txt
Code: Select all
filebot -script fn:amc --output "/mnt/TV_Shows" --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes --def unsorted=y music=y artwork=y "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
Code: Select all
find /usr/local/filebot-node/ -name "*.log"
You seem to be doing something wrong here, because I'd expect you to copy the path to a custom script into qBT, i.e. just a file path:
rednoah wrote: ↑09 Oct 2015, 16:48 Step-by-Step Instructions for Beginners:
- Download the debug.sh script:
Code: Select all
curl -O "https://raw.githubusercontent.com/filebot/plugins/master/bash/debug.sh"
- Read the debug.sh script and try to understand what it does line by line:
Code: Select all
cat debug.sh
- Make the debug.sh script executable for all users:
Code: Select all
chmod +rx debug.sh
- Enter the absolute path to your /path/to/debug.sh script to execute it:
Code: Select all
/path/to/debug.sh
- Read the console output for each test command (e.g. printenv > /tmp/printenv.txt) and confirm that each test command is working:
Code: Select all
tail /tmp/*.txt
- Copy the absolute path to your /path/to/debug.sh script into qBT / Deluge / Transmission / etc and wait for it to be called. Then check the /tmp/*.txt text files to see the console output (i.e. error messages) was for each test command.
I have to use this to make it work with Plex/Media
/Movies
Blade Runner (1982) {edition-Director's Cut}.mp4
Blade Runner (1982) {edition-Final Cut}.mp4
Code: Select all
{edition-'+tags.toString().replace('[','').replace(']','')+'}'
Code: Select all
{plex.id.derive{' {edition-'+tags.toString().replace('[','').replace(']','')+'}' }
Code: Select all
{
if ({az} = A..L) {
return "/media/alittler/'TV Shows'/{plex}"
} else {
return "/media/alittler/'TV Shows2'/{plex}"
}
}
After a few hours of try and try and try again, I think I got it. I just had to search the Forums the same questions in a few different waysalittler wrote: ↑18 Mar 2023, 13:17 How would I sort TV shows, by their first letters, into separate drives? Something like this;
Ah tell you hwat...Code: Select all
{ if ({az} = A..L) { return "/media/alittler/'TV Shows'/{plex}" } else { return "/media/alittler/'TV Shows2'/{plex}" } }
Code: Select all
Movies_Other/" --action duplicate -non-strict --log-file amc.log --def movieFormat="/media/alittler/Movies_Other/{ plex }" seriesFormat="{n =~ /^(?i)[0-9a-r]/ ? '/media/alittler/TV_Shows_1' : n =~ /^(?i)[s-z]/ ? '/media/alittler/TV_Shows_2'}:/{plex}
" excludeList="/media/alittler/Movies_Other/amc.txt