This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "This script must be launched as root (or with sudo)." | |
exit 1 | |
fi | |
if [ $# -lt 2 ] || [ "$1" != "--user" ]; then | |
echo "Usage : $0 --user <user_name>" |
This file contains hidden or 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
# rename movie & episode | |
# ex : Ad.Astra.2019.MULTi.TRUEFRENCH.1080p.HDLight.x264.AC3-EXTREME_wWw.Extreme-Down.Xyz.mkv (movie) | |
# ex : The.Duel.2016.MULTI.1080p.mHD.x264.AC3-SVR-Zone-Telechargement.com.mkv (movie) | |
# ex : Vikings.S06E03.VOSTFR.1080p.WEB.H264-EXTREME.mkv (serie) | |
""" | |
If movie : | |
after the title, there must be a year. | |
Si série : |