Code: Select all
filebot --encoding UTF-8 -rename --db xattr --action symlink --format "$SYMLINK_TEMP_BASE/$TARGET_TV/
{
plex.derive{
def x = model.count{ [it.ext, it.episode, it.lang] == [ext, episode, any{m.lang.ISO2}{null}] }
return x > 1 ? \" - part\$di\" : null
}.tail
}
" -script fn:renall "$PATH_TV"
Code: Select all
Starting filebot rename pass...
Script not found: [renall] not in [amc, artwork, artwork.tmdb, artwork.tvdb, chkall, cleaner, configure, duplicates, explain, extract, history, import, lib/htpc, lib/web, logs, mediainfo, mi, miss, nfo, osdb.explain, osdb.stats, preferences, properties, suball, sysenv, sysinfo, tags, update-mes, verify, watcher, xattr, zip]
Failure (×_×)⌒☆
Code: Select all
FileBot 4.9.4 (r8736) / OpenJDK Runtime Environment 16.0.2
Code: Select all
$ ls -l ~media/filebot/scripts/renall.groovy
-rw-r--r-- 1 media media 640 Aug 18 2018 /home/media/filebot/scripts/renall.groovy