Create a gist now

Instantly share code, notes, and snippets.

@pattulus /fb.sh
Last active Jun 7, 2017

What would you like to do?
My default Filebot script skeleton
#!/bin/sh
# Paths
fb_bin="/usr/local/bin/filebot"
fb_log="$HOME/.logs/filebot.log"
fb_exclude="$HOME/.logs/filebot_processed.txt"
fb_library="/PATH-TO-VIDEOS"
fb_source="/PATH-TO-DESTINATION"
plex_ip="IP-HERE"
plex_token="TOKEN-HERE"
pushover="PUSHOVER-TOKEN"
$fb_bin -script fn:amc --output "$fb_library" -non-strict "$fb_source" \
--def clean="y" ${IFS# remove clutter} \
--def unsorted=n \
--def ignore=Cartoons \
--def pushover="$pushover" \
--def "ut_label=Movies" ${IFS# TV, Movie, Anime, audio} \
--def excludeList="$fb_exclude" \
--def plex="$plex_ip":"$plex_token" \
--def movieFormat="Movies/{n} ({y}){' CD'+pi}{'.'+lang}" seriesFormat="{plex}" animeFormat="{plex}" \
--log-file "$fb_log" \
--conflict skip ${IFS# never override existing files} \
--action move ${IFS# MOVE,COPY,KEEPLINK,SYMLINK,HARDLINK,DUPLICATE,REFLINK,TEST}
Owner

pattulus commented Jun 7, 2017

Also quite useful, fetching artwork for movies with this command filebot -script fn:artwork.tmdb "PATH-TO-MOVIE" --lang de -non-strict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment