[Anime] Convert Absolute to SxE numbers

How-to guides, frequently asked questions, not-so-obvious features, etc
User avatar
The Source
Posts: 19804
Joined: 16 Nov 2011, 08:59
Location: Taipei

[Anime] Convert Absolute to SxE numbers

Post by rednoah »

Convert Absolute to SxE numbers

Anime files are often named using Absolute numbering. However, most Media Center Software like Plex or Kodi require SxE naming standards that match the TheTVDB standard Airdate SxE numbers. So in order to help TheTVDB scrapers correctly identify Anime episodes you will have to convert Absolute Anime numbers to their corresponding TheTVDB Airdate SxE numbers.

Option A: Use the dynamic {db} binding to match AniDB / Absolute episodes to TheTVDB / Airdate SxE episodes:

e.g. You may use the {db} database cross-reference binding to transform AniDB matches to TheTVDB matches:

Code: Select all

:idea: Note that ImageImage mapping information is maintained by the Anime-Lists/anime-lists project.

Option B: Use the dynamic {order} binding to match TheTVDB / Absolute episodes to TheTVDB / Airdate SxE episodes:

In the best case, if absolute number information has already been added to TheTVDB and clearly named files (e.g. E501) FileBot can easily match the absolute numbers with the correct episode in Airdate order and rename it using SxE information (e.g. S14E19). In the worst case, especially if files use ambiguous naming patterns (e.g. 501 can mean 5x01 or 501) you may need to:
  1. Match with Absolute Order episode information using TheTVDB
  2. Translate Absolute Order episode data to Airdate Order in the format

e.g. use the dynamic {order} binding to rebase bindings such as {plex} or {sxe} to Airdate SxE episode information in your custom format:

Code: Select all


Code: Select all


Code: Select all

:idea: You can use the Presets feature to create your own Convert Absolute to Airdate preset for easy access.

:idea: The same technique can be used to convert DVD SxE numbers to Airdate SxE numbers and vice versa.

Option C: Use --mapper command-line option to match files with one order but rename with another order:

Please read Use --mapper expressions for AniDB / TheTVDB cross-entity matching for details and advanced usage examples.

e.g. use a custom --mapper option to convert Absolute Order to Airdate SxE Order on the command-line:

Code: Select all

$ filebot -rename *.mkv --db TheTVDB --order airdate --mapper order.absolute.episode --format "{n} - {s00e00} - E{absolute}" -non-strict
[MOVE] Rename [One Piece 501.mkv] to [One Piece - S14E20 - E501.mkv]
:idea: Please read the FAQ and How to Request Help.