Skip to content

Instantly share code, notes, and snippets.

@patrickwelker
Last active June 7, 2017 13:17
Show Gist options
  • Save patrickwelker/b3006ff99c51c655540a3b854abc6ee1 to your computer and use it in GitHub Desktop.
Save patrickwelker/b3006ff99c51c655540a3b854abc6ee1 to your computer and use it in GitHub Desktop.
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}
@patrickwelker
Copy link
Author

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