filenames with dates for episode names

Any questions? Need some help?
Post Reply
z3r0_burn
Posts: 1
Joined: 01 Aug 2014, 04:10

filenames with dates for episode names

Post by z3r0_burn »

Hi,
I have searched and searched for any solutions that I could apply to my situation but not being a programmer I have not found one. My problem is that some shows I download are date-based and use the word for the month instead of the number.

EastEnders (25 July 2014) 720HD .mkv
instead of
EastEnders (25 07 2014) 720HD .mkv

I have been able to figure out the episodes with the second format but dont know enough about groovy/regex to create something to search the filename and match the word to the number so jan = 01, feb = 02 etc.

Is there a built in way i missed or a manual way I can implement this at the CLI?

I am running:
FileBot 4.2 (r2326) / Java(TM) SE Runtime Environment 1.7.0_65 (headless)
on Ubuntu 14.04 LTS


Thanks for the wonderfull program, made switchin from Windows to Linux a no brainer as this was the last function i was looking for in my media server
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filenames with dates for episode names

Post by rednoah »

You can specify a Date format pattern like this:

Code: Select all

{n} [{airdate.format('dd. MMMM yyyy')}] {t}
@see http://docs.oracle.com/javase/8/docs/ap ... ormat.html
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filenames with dates for episode names

Post by rednoah »

Added additional date patterns. Fixed with r3230.
:idea: Please read the FAQ and How to Request Help.
Post Reply