Re: xattr
You can use
-no-xattr to make the errors go away. Alternatively, you can configure FileBot to store
xattr metadata into plain text files.
Re: TVmaze
TVmaze does not support absolute numbers, and FileBot does not "invent" them, though you could "invent" them in your custom format. Notably, TVmaze is only used by a very small minority of users. I'd generally recommend using what everybody else is using, i.e. TheTVDB or TheMovieDB/TV.
Re: Kodi
If you're using Plex / Kodi / etc then the general way of doing things is to configure either TheTVDB or TheMovieDB/TV there, and then use only that chosen database when renaming files with FileBot, and only that chosen database. That way files will always match up perfectly in Plex / Kodi / etc. If the files you have don't match the information in the database you have chosen, then you need to translate
(painstakingly via manual matching if necessary) the naming and number as dictated by your chosen database.

Switching between different databases depending on the files at hand can make things easier at first when processing files with FileBot, and might be viable if you're only naming files your yourself, but might cause trouble later when your files are not consistently named and numbered, because Plex / Kodi / etc can't know which database you have chosen for any one particular file or series.
Re: AniDB and season numbers
AniDB doesn't have seasons. Each "season" is a separate series with a different series name. Sometimes they just add "2nd Season" to the name. Sometimes just an extra "!!" at the end. Sometimes a completely different name. If you use
{s} with AniDB episode information, then FileBot try to infer the number you seek via AnimeLists / TheTVDB / TheMovieDB / etc.
Re: TheTVDB and absolute numbers
TheTVDB does support absolute numbers, but the absolute number may or may not have been added yet for any one particular episode.
This case should work though, because someone has already done the work:
Code: Select all
$ filebot -list --db TheTVDB --q "Dragon Ball KAI" --format "{sxe} | {absolute} | {t}" | grep 128
2x23 | 128 | The Nightmare Returns, The Immortal Monster, Majin Buu
Nope! The 1st failed attempt teaches us that we need to focus on the
absolute numbers, since
128 can be interpreted as either
S01E28 or
E128:
Code: Select all
$ filebot -rename "Dragon Ball KAI - 128.mp4" --db TheTVDB -non-strict --log INFO --action TEST
[TEST] from [Dragon Ball KAI - 128.mp4] to [Dragon Ball Kai - 1x28 - The Super Decisive Battle Draws Near! The Ginyu Special Force Has Arrived!.mp4]
Almost! The 2nd attempt will give us the correct match, but...
How do I convert Absolute numbers to Airdate SxE numbers?
Code: Select all
$ filebot -rename "Dragon Ball KAI - 128.mp4" --db TheTVDB --order Absolute -non-strict --log INFO --action TEST
[TEST] from [Dragon Ball KAI - 128.mp4] to [Dragon Ball Kai - 128 - The Nightmare Returns, The Immortal Monster, Majin Buu.mp4]
** {s} {e} {sxe} {s00e00} and friends work differently depending on the episode information at hand; if we're using --order absolute then {s} is undefined and {e} is the absolute number
Success! The 3rd attempt is just copy & paste from
Option C: Use the --mapper command-line option to match files with one order but rename with another order
Code: Select all
$ filebot -rename "Dragon Ball KAI - 128.mp4" --db TheTVDB --mapper order.absolute.episode --format "{n} - {s00e00} - E{absolute} - {t}" -non-strict --log INFO --action TEST
[TEST] from [Dragon Ball KAI - 128.mp4] to [Dragon Ball Kai - S02E23 - E128 - The Nightmare Returns, The Immortal Monster, Majin Buu.mp4]
Bonus! What if we can't use
--mapper because we're using the FileBot Desktop application? Then
Option B: Use the dynamic {order} binding to match TheTVDB / Absolute episodes to TheTVDB / Airdate SxE episodes will have to do:
Code: Select all
$ filebot -rename "Dragon Ball KAI - 128.mp4" --db TheTVDB --order Absolute --format "{n} - {order.airdate.s00e00} - E{absolute} - {t}" -non-strict --log INFO --action TEST
[TEST] from [Dragon Ball KAI - 128.mp4] to [Dragon Ball Kai - S02E23 - E128 - The Nightmare Returns, The Immortal Monster, Majin Buu.mp4]

And once our "convert absolute to SxE numbers" command has proven itself, we can then pack all that complexity into a
custom command-line tool and use that instead in the future.