[Anime] Convert Absolute to SxE numbers

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

[Anime] Convert Absolute to SxE numbers

Post by rednoah » 13 Jun 2015, 15:27

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).


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

{order.airdate.sxe}

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

Code: Select all

filebot -rename "One Piece 501.avi" --db TheTVDB --order Absolute --format "{n} - {order.airdate.sxe}" -non-strict

Code: Select all

[MOVE] Rename [One Piece 501.avi] to [One Piece - 14x20.avi]


: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.
Image
:idea: Please read the FAQ and How to Request Help.

james
Posts: 1
Joined: 30 May 2018, 04:14

Re: [Anime] Convert Absolute to SxE numbers

Post by james » 30 May 2018, 04:15

I registered specifically to thank you for this. Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests