[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: 16428
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: 16428
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.

Tdoc
Posts: 22
Joined: 20 Feb 2018, 08:19

Re: [Anime] Convert Absolute to SxE numbers

Post by Tdoc » 28 Jan 2019, 14:36

Hi

I am interested as well but I can find only help for the windows version of filebot :(
I am runnning filebot node and would be curious to have the absolut to serial converter on my synology !!

I run the following format for animes:

Code: Select all

Anime/{n}/{episode.special ? 'Special' : 'Season '+s}/{n}.{episode.special ? 'S00E'+special.pad(2) : s00e00}.{t}
thats give me:
Anime/JoJo's Bizarre Adventure (2012)/Season 1/JoJo's Bizarre Adventure (2012).S01E01.Dio the Destroyer.mkv

But I have to manually researche from Absolute to SxxExx on wikies quickly add just the SxxExx numbering and then run filebot node; painful

what would be he changes from above code to have both SxxExx and #xxx in the file name ?

in advance thank you for any support you can give me :D

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

Re: [Anime] Convert Absolute to SxE numbers

Post by rednoah » 28 Jan 2019, 14:59

If you're using FileBot Node, then you're effectively using the amc script, which means you can force TV Show mode, set order and format options, which means you can apply the techniques mentioned in the OP.

:arrow: If you have trouble with that, please make a new thread in the Synology section and include screenshots / console output with what you've tried so far.
:idea: Please read the FAQ and How to Request Help.

Vartikanshi579
Posts: 1
Joined: 02 May 2019, 11:51

Re: [Anime] Convert Absolute to SxE numbers

Post by Vartikanshi579 » 02 May 2019, 11:55

I agree with rednoah.

Gallltid
Posts: 1
Joined: 20 May 2019, 07:13

Re: [Anime] Convert Absolute to SxE numbers

Post by Gallltid » 20 May 2019, 08:45

Thanks for this tutorial.

Post Reply