[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: 14491
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!

iAmKoinu
Posts: 4
Joined: 19 Oct 2018, 14:06

Re: [Anime] Convert Absolute to SxE numbers

Post by iAmKoinu » 19 Oct 2018, 14:11

Hi there! Loving the program, just wanted to know if you planned on making this code customizable? I don't keep my episodes in the "SxE" format, and while i do know that I can just easily rename it to my liking with the preset I already have, it would be really nice to be able to convert absolute to my preferred naming scheme in one go!

Thanks for all your hard work! :D

User avatar
rednoah
The Source
Posts: 14491
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Anime] Convert Absolute to SxE numbers

Post by rednoah » 19 Oct 2018, 16:10

Yes, should be pretty straight forward. What's not working? Where are you stuck?

e.g. convert Absolute to SxE in one go using your format:

Code: Select all

filebot -rename "One Piece 501.avi" --db TheTVDB --order Absolute --format "{n}.{y}.{order.airdate.s00e00}.#{absolute}.{t}.[{airdate}]" -non-strict
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests