Created
March 31, 2023 16:39
-
-
Save agrajag9/64221bf00d30ffa66739b512acba5cb8 to your computer and use it in GitHub Desktop.
Filebot bash aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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