I have a problem with FileBot.
FileBot runs in Docker (coppit/filebot:latest)
For movies and series everything is going well, but with anime I have no success.
Filebot recognizes the right series, but also a movie and therefore it wants to rename it into the movie.
filebot.sh :
Code: Select all
#!/bin/bash
# This script by default uses "Automated Media Center" (AMC). See the final filebot call below. For more docs on AMC,
# visit: http://www.filebot.net/forums/viewtopic.php?t=215
#-----------------------------------------------------------------------------------------------------------------------
# Specify the URLs of any scripts that you need. They will be downloaded into /config/scripts
SCRIPTS_TO_DOWNLOAD=(
# Example:
# https://raw.githubusercontent.com/filebot/scripts/devel/cleaner.groovy
)
#-----------------------------------------------------------------------------------------------------------------------
QUOTE_FIXER='replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'"'"'").replaceAll(/[\u201c\u201d]/, '"'"'""'"'"')'
# Customize the renaming format here. For info on formatting: https://www.filebot.net/naming.html
# Music/Eric Clapton/From the Cradle/05 - It Hurts Me Too.mp3
MUSIC_FORMAT="HDD3/Musik/{n.$QUOTE_FIXER}/{album.$QUOTE_FIXER}/{media.TrackPosition.pad(2)} {} - {t.$QUOTE_FIXER}"
# Movies/Fight Club.mkv
MOVIE_FORMAT="HDD1/Filme/{n}/{n.$QUOTE_FIXER} {' CD'+pi}"
# TV Shows/Game of Thrones/Season 05/Game of Thrones - S05E08 - Hardhome.mp4
# TV Shows/Game of Thrones/Special/Game of Thrones - S00E11 - A Day in the Life.mp4
SERIES_FORMAT="HDD2/Serien/{n}/{episode.special ? 'Special' : 'Staffel '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.${QUOTE_FIXER}.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}"
ANIME_FORMAT="HDD2/Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.${QUOTE_FIXER}.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}"
. /files/FileBot.conf
if [ "$SUBTITLE_LANG" == "" ];then
SUBTITLE_OPTION=""
else
SUBTITLE_OPTION="subtitles=$SUBTITLE_LANG"
fi
#-----------------------------------------------------------------------------------------------------------------------
# Used to detect old versions of this script
VERSION=4
# Download scripts and such.
. /files/pre-run.sh
# See http://www.filebot.net/forums/viewtopic.php?t=215 for details on amc
filebot --lang de -script fn:amc -no-xattr --output "$OUTPUT_DIR" --log-file /files/amc.log --action move --conflict auto \
-non-strict --def ut_dir="$INPUT_DIR" ut_kind=multi music=y deleteAfterExtract=y clean=y \
excludeList=/config/amc-exclude-list.txt $SUBTITLE_OPTION \
movieFormat="$MOVIE_FORMAT" musicFormat="$MUSIC_FORMAT" seriesFormat="$SERIES_FORMAT" animeFormat="$ANIME_FORMAT"
amc.log:
Code: Select all
Run script [fn:amc] at [Thu Oct 26 11:13:46 UTC 2017]
Parameter: ut_dir = /media/HDD3/Downloads/FileBot/
Parameter: ut_kind = multi
Parameter: music = y
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: excludeList = /config/amc-exclude-list.txt
Parameter: movieFormat = HDD1/Filme/{n}/{n.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')} {' CD'+pi}
Parameter: musicFormat = HDD3/Musik/{n.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}/{album.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}/{media.TrackPosition.pad(2)} {} - {t.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""')}
Parameter: seriesFormat = HDD2/Serien/{n}/{episode.special ? 'Special' : 'Staffel '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : S00E00} - {t.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""').replaceAll(/[!?.]+$/).replacePart(', Part ')}{'.'+lang}
Parameter: animeFormat = HDD2/Anime/{primaryTitle}/{primaryTitle} - {sxe} - {t.replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'").replaceAll(/[\u201c\u201d]/, '""').replaceAll(/[!?.]+$/).replacePart(', Part ')}{'.'+lang}
Use excludes: /config/amc-exclude-list.txt (1)
Input: /media/HDD3/Downloads/FileBot/Anime.Dragon.Ball.Super.E005.Entscheidungskampf.auf.Meister.Kaios.Planet.Goku.gegen.Beerus/Anime.Dragon.Ball.Super.E005.Entscheidungskampf.auf.Meister.Kaios.Planet.Goku.gegen.Beerus.mkv
Input: /media/HDD3/Downloads/FileBot/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.BDRiP.x264-STARS/stars-dbs.e001.dub.480p.mkv
Anime.Dragon.Ball.Super.E005.Entscheidungskampf.auf.Meister.Kaios.Planet.Goku.gegen.Beerus.mkv [series: Dragon Ball Super, movie: Dragon (2006)]
Unable to differentiate: [Anime.Dragon.Ball.Super.E005.Entscheidungskampf.auf.Meister.Kaios.Planet.Goku.gegen.Beerus.mkv] => [Dragon Ball Super] VS [Dragon (2006)]
Movie data not found: null (0000) [0 / 4644488]
stars-dbs.e001.dub.480p.mkv [series: Dragon Ball Super, movie: Dragon (2011)]
Movie data not found: null (0000) [0 / 4644488]
Exclude Series: Dragon Ball Super
Group: [:] => [Anime.Dragon.Ball.Super.E005.Entscheidungskampf.auf.Meister.Kaios.Planet.Goku.gegen.Beerus.mkv]
Group: [tvs:null, mov:dragon 2011] => [stars-dbs.e001.dub.480p.mkv]
Rename movies using [TheMovieDB]
Movie data not found: null (0000) [0 / 4644488]
Auto-detect movie from context: [/media/HDD3/Downloads/FileBot/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.BDRiP.x264-STARS/stars-dbs.e001.dub.480p.mkv]
Movie data not found: null (0000) [0 / 4644488]
Skipped [/media/HDD3/Downloads/FileBot/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.BDRiP.x264-STARS/stars-dbs.e001.dub.480p.mkv] because [/media/HDD1/Filme/Dragon/Dragon.mkv] already exists
Processed 0 files
Clean clutter files and empty folders
Finished without processing any files
Failure (°_°)
Code: Select all
stars-dbs.e001.dub.480p.mkv [series: Dragon Ball Super, movie: Dragon (2011)]
Movie data not found: null (0000) [0 / 4644488]
Exclude Series: Dragon Ball Super