However, I've noticed that when I often do not have an db.anidb.id binding, that animeList.anidb.id binding seems to generally be there, the number it returns is not from AniDB, Nor TheTVDB.
For some of these shows, I have verified that the ScudLee xml (anime-list.xml) has these entries, and has had them for over 20+ days.
I'm a bit baffled on not only why there is no db.anidb.id (when it should), but even if there wasn't why animelist.anidb.id is a seemingly nonsensical number ..
These are in ScudLee's xml (and have been for over 20+ days)
Code: Select all
Rename episodes using [TheTVDB] with [Absolute Order]
Auto-detected query: [The God of High School, god of]
Fetching episode data for [The God of High School]
Fetching episode data for [King of High School]
Fetching episode data for [God of]
Fetching episode data for [Soldier]
Fetching episode data for [The God of Risk]
Fetching episode data for [The God of Music]
Fetching episode data for [Master of Study]
Apply mapper [AnimeList.AniDB] on [133] episodes
[TEST] from [W:\FB-1\anime\The God of High School [tvdb-378556]\[DeadFish] The God of High School - 04 [720p][AAC].mp4] to [Z:\1-InitialSort\2020\summer\The God of High School [tvdb-378556] [animelist-7827572]\[DeadFish] The God of High School - 04 [720p][AAC].mp4]
Rename episodes using [TheTVDB] with [Absolute Order]
Auto-detected query: [Super Dragon Ball Heroes]
Fetching episode data for [Super Dragon Ball Heroes]
Apply mapper [AnimeList.AniDB] on [26] episodes
[TEST] from [W:\FB-1\anime\Super Dragon Ball Heroes [tvdb-347734]\[Desu is dead] Super Dragon Ball Heroes Big Bang Mission Episode 5 (SDBH Episode 25) [720p].mkv] to [Z:\1-InitialSort\2020\summer\Super Dragon Ball Heroes [tvdb-347734] [animelist-7819927]\[Desu is dead] Super Dragon Ball Heroes Big Bang Mission Episode 5 (SDBH Episode 25) [720p].mkv]
Code: Select all
{
if ("${self.media.Encoded_Date}" == "null" ) {
if ("${self.media.File_Created_Date_Local}" == "null" ) {
if ("${self.media.File_Modified_Date_Local}" == "null" ) {
myReleaseYear = "${today}".split('-')[0]
} else {
myReleaseYear = "${self.media.File_Modified_Date_Local('-')[0]}"
}
} else {
myReleaseYear = "${self.media.File_Created_Date_Local.split('-')[0]}"
}
} else {
myReleaseYear = "${self.media.Encoded_Date.replaceFirst(/UTC\s/, '').split('-')[0]}"
}
// This check is for when the binding is defined, but the UTC date data is screwed up.
// Failed to read media characteristics: DateTimeParseException: Text 'UTC ' could not be parsed at index 4
// Which gives UTC as the entire binding value (useless)
if ( myReleaseYear == "" ) {
myReleaseYear = "${today}".split('-')[0]
}
// myShowYear/myShowMonth seems to frequently not populate
myShowYear = any {"${airdate.year}"} {"${d.year}"} {"${startdate.year}"} {"${today}".split('-')[0]} {"Year"}
myShowMonth = any {"${airdate.month}"} {"${d.month}"} {"${startdate.month}"} {"${today}".split('-')[1]} {"Month"}
myShowSeason = "${switch (myShowMonth) {
case {myShowMonth.matches("0?[1-3]")}:
return 'winter'
case {myShowMonth.matches("0?[4-6]")}:
return 'spring'
case {myShowMonth.matches("0?[7-9]")}:
return 'summer'
case {myShowMonth.matches("10|11|12")}:
return 'fall'
default:
return 'unknown'
}
}"
// Sometimes the metadata for media.Encoded_date is bogus. Or if you are HorribleSubs, seems to be stuck at 2010
// So if myShowYear is less then or Equal to myReleaseYear, then assume the encoded date field is bogus.
any
{
if ( "${myShowYear}" >= "${myReleaseYear}" ) {
myShowYear+"/"+myShowSeason
} else {
myReleaseYear+"_rerelease"
}
}
{
myReleaseYear+"_creation"
}
{ "Failure"}
}/
{ any { db.AniDB.n } { db.AniDB.primaryTitle } { db.TheTVDB.n } {n} }
{ any
{ if (db.AniDB.id) '[anidb-'+{db.AniDB.id}+']' }
{'[tvdb-'+db.TheTVDB.id+']'}
{'[tmdb-'+tmdbid+']'}
}
{ any
{ if (Animelist.AniDB.id) '[animelist-'+{Animelist.AniDB.id}+']' }
{'[tvdb-'+db.TheTVDB.id+']'}
{'[tmdb-'+tmdbid+']'}
}
/{fn}
Code: Select all
$ACTION = "test"
$FileBotSourceDirectory = "W:\FB-1\anime\"
$FileBotDestDirectory = "Z:\1-InitialSort\"
$MYScriptPath = (Get-Location).Path
$MyScript="fn:amc"
$MyFormat="$MYScriptPath\initialsort_testing.groovy"
filebot -script $MyScript --action $ACTION "$($FileBotSourceDirectory)" --output "$($FileBotDestDirectory)" `
--def movieFormat=@$($MyFormat) `
animeFormat=@$($MyFormat) `
seriesFormat=@$($MyFormat) `
animeDB=TheTVDB `
minFileSize=10 `
minLengthMS=5 `
-no-xattr `
-non-strict `
--mapper AnimeList.AniDB `
-r `
--lang=en `
--log all
Code: Select all
FileBot 4.9.1 (r7372)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-08-02 (r665)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 14
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 24 Core / 17 GB Max Memory / 129 MB Used Memory
OS: Windows 10 (amd64)
DATA: C:\Users\xxxxx\AppData\Roaming\FileBot
Package: MSI
License: FileBot License PX10195720 (Valid-Until: 2069-11-10)