wrong assignment - anime -> movie / series

Any questions? Need some help?
Post Reply
CDI
Posts: 2
Joined: 01 Dec 2016, 19:16

wrong assignment - anime -> movie / series

Post by CDI »

Hello everybody,

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 (°_°)
what I mean:

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
I hope someone can help!
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

Having this too, any Solution for that?
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: wrong assignment - anime -> movie / series

Post by devster »

If your torrent client supports labels one easy fix would be to add a ut_label with the appropriate type.
Otherwise I believe the amc script also looks for similar things in the folder path, so for example;

Code: Select all

/path/to/dir/anime
would get forced to be renamed as an anime while

Code: Select all

/path/to/dir/movies
would be renamed as a movie.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: wrong assignment - anime -> movie / series

Post by rednoah »

Yes, it'll be helpful to give the amc script some hints (i.e. process as Movie? or as TV Show? or as Anime?). There's a few ways to do that. Either via --def ut_label parameter or existing well-named folder structure (i.e. Movies folder). Please read the documentation for details.
:idea: Please read the FAQ and How to Request Help.
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

My config looks similiar to the one above. And /path/to/dir/anime does not change anything. ut_label=Anime does work but TV Shows or Movies will not working anymore with this setting.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: wrong assignment - anime -> movie / series

Post by rednoah »

Bugger wrote: 19 Jan 2018, 13:51 /path/to/dir/anime does not change anything
Can you post the log that shows this to be the case?

:idea: A quick look at the code shows that --def ut_label and folder structure is handled the same way, so it should work, so I need logs if it doesn't. ;)
:idea: Please read the FAQ and How to Request Help.
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

Look at: Parameter: animeFormat = Anime/{n}/{n}{e} - {t}

Code: Select all

Run script [fn:amc] at [Fri Jan 19 13:01:16 CET 2018]
Parameter: ut_dir = /input
Parameter: ut_kind = multi
Parameter: music = y
Parameter: deleteAfterExtract = y
Parameter: clean = n
Parameter: excludeList = /config/amc-exclude-list.txt
Parameter: movieFormat = Filme/{n}/{n}
Parameter: musicFormat = Music/{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 = Serien/{n}/{'Staffel '+s.pad(2)}/{n} {s00e00} - {t}
Parameter: animeFormat = Anime/{n}/{n}{e} - {t}
Use excludes: /config/amc-exclude-list.txt (1)
Ignore extra: /input/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS/Sample
Input: /input/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS/stars-dbs.e001.dub.720p.mkv
Movie data not found: null (0000) [0 / 4644488]
stars-dbs.e001.dub.720p.mkv [series: Dragon Ball Super, movie: Dragon (2011)]
Movie data not found: null (0000) [0 / 4644488]
Exclude Series: Dragon Ball Super
Group: [tvs:null, mov:dragon 2011] => [stars-dbs.e001.dub.720p.mkv]
Rename movies using [TheMovieDB]
Movie data not found: null (0000) [0 / 4644488]
Auto-detect movie from context: [/input/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS/stars-dbs.e001.dub.720p.mkv]
Movie data not found: null (0000) [0 / 4644488]
Skipped [/input/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS/stars-dbs.e001.dub.720p.mkv] because [/output/Filme/Dragon/Dragon.mkv] already exists
Processed 0 files
Finished without processing any files
Failure (°_°)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: wrong assignment - anime -> movie / series

Post by rednoah »

There is no Anime folder:

Code: Select all

Input: /input/Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS/stars-dbs.e001.dub.720p.mkv
The Anime format doesn't matter, because it only comes into play once FileBot already knows that the file is an Anime. The problem in the OP is that FileBot doesn't know that.

Something like this would work:

Code: Select all

Input: /input/Anime/...
:idea: Please read the FAQ and How to Request Help.
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

Yep, that is working. Thanks for that.

Sadly, that doesn't work well with the docker variant of Filebot. Filebot is watching a folder and the extraction goes directly into this folder to it can progressed with Filebot. Is it possible to tell Filebot to look for the phrase "Anime" in the parent Folder or title or do you have any other Ideas?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: wrong assignment - anime -> movie / series

Post by rednoah »

Yes, if a file has a parent folder called "Anime" then it'll will be treated as Anime immediately.
:idea: Please read the FAQ and How to Request Help.
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

Well, not really^^

Dragon.Ball.Super.E001.Die.Belohnung.fuer.den.Frieden.Wer.erhaelt.die.100.Millionen.Zeni.German.2015.ANiME.AC3D.720p.BluRay.x264-STARS

The folder has anime in it, but its not treated as anime. As mentioned above:

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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: wrong assignment - anime -> movie / series

Post by rednoah »

"Anime" folder works. The word "Anime" randomly somewhere in the file path does not work (though you can have your own bash script check for that and then pass --def ut_label accordingly).

YES:

Code: Select all

Input: /input/Anime/.../stars-dbs.e001.dub.720p.mkv
NO:

Code: Select all

Input: /input/.../stars-dbs.e001.dub.720p.mkv
:idea: Please read the FAQ and How to Request Help.
Bugger
Posts: 13
Joined: 19 Jan 2018, 12:52

Re: wrong assignment - anime -> movie / series

Post by Bugger »

Ok, guess thats the only way then. Thanks alot for your help and the clarification :-)
Post Reply