Page 1 of 1

[Anime] Convert Absolute to SxE numbers

Posted: 13 Jun 2015, 15:27
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 Season/Episode numbers (in Airdate order).

So in order to help TheTVDB scrapers correctly identify your Anime episodes you will have to convert Absolute anime numbers to their corresponding TheTVDB SxE numbers.

In the best case, if absolute number information has already been added to TheTVDB and clearly named files (e.g. One Piece E500) FileBot can easily match the absolute numbers with the correct episode in Airdate order and rename it using SxE information (e.g. One Piece S14E19).

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 ScudLee/anime-lists project.

In the worst case, especially if files use ambiguous naming patterns (e.g. One Piece 501 can mean 5x01 or 501) you may need to:
  1. Match with Absolute Order episode data
  2. Translate Absolute Order episode data to Airdate Order in the format

e.g. Use the {order} binding to retrieve SxE episode data in the format:

Code: Select all


e.g. Convert Absolute Order to Airdate Order on the command-line:

Code: Select all

filebot -rename --db TheTVDB --order airdate --mapper order.absolute.episode --format "{n} {sxe} [{absolute}]" -non-strict

Code: Select all

[MOVE] Rename [One Piece 501.avi] to [One Piece 14x20 [501].avi]
:arrow: Please read Use --mapper expressions for AniDB / TheTVDB cross-entity matching for advanced usage examples.

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

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