NFO files script does not respect order?
Posted: 08 May 2024, 03:08
Hello, I am trying to use the NFO script from here and it is giving unexpected results: https://github.com/filebot/scripts/blob ... nfo.groovy
Let's use an example episode from X-Men (1992), with TheMovieDB episode mode, in production ordering. See here, 3x8 "No Mutant is an Island": https://www.themoviedb.org/tv/4574-x-me ... 6aaa4ab209
This episode is 5x4 in airdate ordering.
I rename the file using Filebot GUI and pick TMDB and production order, this gives the correct filename:
X-Men (1992) - 3x08 - No Mutant Is an Island.mkv
I have it generate .xattr. Here is the contents of net.filebot.metadata:
Note this value: "season":3,"episode":8 -- still correct so far.
When I then run the filebot nfo script, it still seems to detect 3x08:
However the final resulting NFO file has the wrong season and episode. It is still using the airdate order:
The expected result is to have season 3 and episode 8 inside this XML NFO file. Is there anything I am doing wrong or can something be changed in the NFO groovy script to accomplish this?
Thanks
Let's use an example episode from X-Men (1992), with TheMovieDB episode mode, in production ordering. See here, 3x8 "No Mutant is an Island": https://www.themoviedb.org/tv/4574-x-me ... 6aaa4ab209
This episode is 5x4 in airdate ordering.
I rename the file using Filebot GUI and pick TMDB and production order, this gives the correct filename:
X-Men (1992) - 3x08 - No Mutant Is an Island.mkv
I have it generate .xattr. Here is the contents of net.filebot.metadata:
Shell: Select all
{"@type":"Episode","seriesName":"X-Men","season":3,"episode":8,"title":"No Mutant Is an Island","absolute":34,"airdate":{"year":1996,"month":9,"day":21},"id":330280,"group":"Season 3","seriesInfo":{"database":"TheMovieDB::TV","order":"Production","language":"en-US","type":"Scripted","id":4574,"name":"X-Men","aliasNames":["XMen","X-Men - The Animated Series","XMen The Animated Series","變種特工","变种特工","X-Men Animated Series","XMen Animated Series","Insuperabili X-Men","Insuperabili XMen","Oamenii-X","OameniiX","X - cilvēki","X Men, La Serie Animada","X-Men: A Série Animada","XMen A Série Animada","X-Men: Serie Animada","XMen Serie Animada","X战警","Люди Икс","Люди Ікс","Х-мен","Хмен","特異功能組","X-Men - A Série Animada","エックスメン","X-Men The Animated Series"],"certification":"TV-Y7","startDate":{"year":1992,"month":10,"day":31},"genres":["Kids","Sci-Fi & Fantasy","Animation","Action & Adventure"],"spokenLanguages":["en"],"network":"FOX","rating":8.197,"ratingCount":1108,"status":"Ended"}}
When I then run the filebot nfo script, it still seems to detect 3x08:
Console Output: Select all
$ filebot -script fn:nfo "Y:\FilebotTest\X-Men (1992) - 3x08 - No Mutant Is an Island.mkv"
[EPISODE] X-Men - 3x08 - No Mutant Is an Island [Y:\FilebotTest\X-Men (1992) - 3x08 - No Mutant Is an Island.mkv]
Generate Series NFO: TheMovieDB::TV::4574 [Y:\.nfo]
Generate Episode NFO: X-Men - 3x08 - No Mutant Is an Island [Y:\FilebotTest\X-Men (1992) - 3x08 - No Mutant Is an Island.nfo]
Done ?(?????)?
Code: Select all
<episodedetails>
<uniqueid type='tmdb'>330280</uniqueid>
<title>No Mutant Is an Island</title>
<season>5</season>
<episode>4</episode>
<aired>1996-09-21</aired>
Thanks