some help with it will be great !
here is my Log AMC :
Code: Select all
Run script [fn:amc] at [Thu Dec 05 11:36:28 UTC 2019]
Parameter: plex = *****
Parameter: artwork = y
Parameter: seriesFormat = {output}/TV/{n}/{'Season '+s}/{n} - {s00e00} - {t}
Parameter: ut_dir = /home/sanpaille/torrents//home/sanpaille/torrents/V.Wars.2019.S01.1080p.NF.WEB.DDP5.1.x264-AX
Parameter: ut_kind = multi
Parameter: ut_title = V.Wars.2019.S01.1080p.NF.WEB.DDP5.1.x264-AX
Parameter: ut_label = tv
LicenseError: UNREGISTERED
No files selected for processing
Done ¯\_(ツ)_/¯
Code: Select all
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
UTILISATEUR="sanpaille"
if [ $TORRENT_LABEL = "tv" ]
then
filebot --lang en -script fn:amc --output "/home/$UTILISATEUR/Media" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --db TheTVDB --lang fr --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "seriesFormat={output}/TV/{n}/{'Season '+s}/{n} - {s00e00} - {t}" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "movie" ]
then
filebot --lang en -script fn:amc --output "/home/$UTILISATEUR/Media" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --db TheTVDB --lang fr --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "movieFormat={output}/Movie/{n} ({y})/{n} ({y})" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "music" ]
then
filebot --lang en -script fn:amc --output "/home/$UTILISATEUR/Media" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y --def music=y "musicFormat={output}/Music/{albumartist}/{album}/{t}" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "spectacles" ]
then
filebot --lang fr -script fn:amc --output "/home/$UTILISATEUR/Media/" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --db themoviedb --lang fr --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "movieFormat={output}/Spectacles/{n} ({y})/{n} ({y})" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "Porn" ]
then
filebot --lang fr -script fn:amc --output "/home/$UTILISATEUR/Media/" --log-file "/home/$UTILISATEUR/.session/amc.log" --action move --conflict override -non-strict --db imdb --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "movieFormat={output}/Porn/{n} ({y})/{n} ({y})" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "concerts" ]
then
filebot --lang fr -script fn:amc --output "/home/$UTILISATEUR/Media/" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --db themoviedb --lang fr --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "movieFormat={output}/Concerts/{n} ({y})/{n} ({y})" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
elif [ $TORRENT_LABEL = "anime" ]
then
filebot --lang en -script fn:amc --output "/home/$UTILISATEUR/Media" --log-file "/home/$UTILISATEUR/.session/amc.log" --action copy --conflict override -non-strict --db TheTVDB --lang fr --def plex=localhost:xyFSxWpHhuVsafsUZ2Wa --def artwork=y "animeFormat=Anime/{n}/{n}.S{(episode.season ? s : 1).pad(2)}E{e.pad(2)}.{t}" "ut_dir=/home/sanpaille/torrents/$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
fi