Skip to content

Instantly share code, notes, and snippets.

@agrajag9
Created March 31, 2023 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agrajag9/64221bf00d30ffa66739b512acba5cb8 to your computer and use it in GitHub Desktop.
Save agrajag9/64221bf00d30ffa66739b512acba5cb8 to your computer and use it in GitHub Desktop.
Filebot bash aliases
export FILEBOT_FORMAT_MOVIE="/tank/media/library/movies/{ny}/{ny}{' - pt'+pi}"
export FILEBOT_FORMAT_TV="/tank/media/library/tv/{n}/{n} - Season {s.pad(2)}/{n} - {s00e00} - {t}"
alias filebot='filebot --log all --log-file /var/log/filebot.log -no-xattr -no-probe -rename -non-strict --mode interactive'
alias test_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action test'
alias move_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action move'
alias link_movie='filebot --db TheMovieDB --format "${FILEBOT_FORMAT_MOVIE}" --action hardlink'
alias test_tv='filebot --db TheTvDB --format "${FILEBOT_FORMAT_TV}" --action test'
alias move_tv='filebot --db TheTvDB --format "${FILEBOT_FORMAT_TV}" --action move'
alias link_tv='filebot --db TheTvDB --format "${FILEBOT_FORMAT_TV}" --action hardlink'
alias test_anime='filebot --db anidb --action test --q $( basename "${PWD}" | egrep -o "anidb-[1-9][0-9]{0,9}" | cut -d- -f2 )'
alias move_anime='filebot --db anidb --action move --q $( basename "${PWD}" | egrep -o "anidb-[1-9][0-9]{0,9}" | cut -d- -f2 )'
alias link_anime='filebot --db anidb --action hardlink --q $( basename "${PWD}" | egrep -o "anidb-[1-9][0-9]{0,9}" | cut -d- -f2 )'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment