Mapping AniDB numbers to TheTVDB numbers doesn't always work
Posted: 14 Oct 2021, 21:10
Hi i'm having a problem where some anime that i download gets renamed to mkv instead of the anime name and episode it works for the most part just the odd anime gets renamed to mkv. any help would be great thanks.
here is a test run
here is a test run
Code: Select all
E:\>filebot -script fn:amc "E:\other\New Downloads" --output E:\other --log-file amc.log --action move --conflict skip -non-strict --def clean=y --def seriesFormat=@E:\other\SeriesFormat.groovy animeFormat=@E:\other\AnimeFormat.groovy movieFormat=@E:\other\MoviesFormat.groovy --def music=n artwork=n "ut_label=S" "ut_title=K" "ut_file=D" --def emby=localhost:7f7aa33581b1486280061f488aaa5aa2 --action TEST
Run script [fn:amc] at [Thu Oct 14 14:54:00 MDT 2021]
Parameter: clean = y
Parameter: seriesFormat = TV Shows\{n}/{'Season '+s}/{n} - {s00e00} - {t}
Parameter: animeFormat = tv shows\{n}/{'Season '+s}/{db.TheTVDB.emby[3]}
Parameter: movieFormat = {vf == /2160p/ ? '4k Movies' : 'Movies'} \{collection.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/).replaceFirst(/^(?i)(Collection of the)\s(.+)/, /$2 Collection/).replaceAll(/Saga Collection/, "Saga").replaceAll(/[`´???""??]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ")}\{norm = {it.upperInitial().lowerTrail().replaceTrailingBrackets().replaceAll(/[`´???""??]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}; norm(n)}{if (norm(n) != norm(primaryTitle)) ' ('+norm(primaryTitle)+')'}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""} ({y} {hd} {certification}) [{vf}]/{norm(n)}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}{" Part $pi"} ({y}){" [$vf $vc $ac $af]"}
Parameter: music = n
Parameter: artwork = n
Parameter: ut_label = S
Parameter: ut_title = K
Parameter: ut_file = D
Parameter: emby = *****
Argument[0]: E:\other\New Downloads
Ignore hidden: E:\other\New Downloads\desktop.ini
Input: E:\other\New Downloads\New Tv\[SubsPlease] Scarlet Nexus - 16 (720p) [78360D2D].mkv
Group: {Anime=scarlet nexus} => [[SubsPlease] Scarlet Nexus - 16 (720p) [78360D2D].mkv]
Rename episodes using [AniDB] with [Absolute]
Lookup via [Scarlet Nexus]
Fetching episode data for [Scarlet Nexus]
Stripping invalid characters from new path: tv shows/Scarlet Nexus/
[TEST] from [E:\other\New Downloads\New Tv\[SubsPlease] Scarlet Nexus - 16 (720p) [78360D2D].mkv] to [E:\other\tv shows\Scarlet Nexus\mkv]