Page 1 of 1

Issues with {e} and {s} tag when "Date and Title" Episode order

Posted: 31 Oct 2022, 03:36
by cualquiera
As the title says, I'm unable to make the "Date and Title" episode order work. Whenever I use it, the {s} tag returns nothing and the {e} tag returns de air date instead of the episode number, check image:

Image

As you can see, on the first file instead of "S01E01", File bot is returning "E19860226" which is the air date (26 of febreuary of 1986).

Using on FileBot 4.9.6, any help is apreciated.

Re: Issues with {e} and {s} tag when "Date and Title" Episode order

Posted: 31 Oct 2022, 03:53
by rednoah
{s} and {e} depend on your preferred episode order. If you want SxE numbers, then you must choose Airdate or DVD.


:idea: Date and Title (or Absolute Airdate) uses the airdate as episode number. Since the "airdate as episode number" typically doesn't match any number in the file name, the Title is allowed to become the deciding factor. The Title is always considered, but matching SxE and Absolute numbers always take precedence. {s} and {e} are the numbers that FileBot is working with internally, so they mustn't match your files if you want to match-by-date/title.


:idea: If you want to match-by-date/title but format-by-airdate/sxe then you can do that. Please read Match by Episode Title for details.


:idea: However, your files are already well-named and well-numbered. You can just use the default settings and it'll work just fine, no?

Code: Select all

$ filebot -rename *.mp4 --db TheMovieDB::TV --order Airdate -non-strict --action TEST --log INFO
[TEST] from [[AnimeRG] Dragon Ball - 007 The Ox-king on Fire Mountain [480p] [×265] (pseudo].mp4] to [Dragon Ball - 1x07 - The Ox King on Fire Mountain.mp4]

Re: Issues with {e} and {s} tag when "Date and Title" Episode order

Posted: 31 Oct 2022, 04:28
by cualquiera
The

Code: Select all

{order.airdate.plex.name}
tag worked like a charm.
Thanks!

Re: Issues with {e} and {s} tag when "Date and Title" Episode order

Posted: 31 Oct 2022, 06:45
by rednoah
:idea: If you're converting file names from Anime numbering to TheTVDB / TheMovieDB Airdate SxE numbering, then reading [Anime] Convert Absolute to SxE numbers may potentially save you a lot of headache.