Page 1 of 1

filenames with dates for episode names

Posted: 01 Aug 2014, 05:21
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

Re: filenames with dates for episode names

Posted: 01 Aug 2014, 10:16
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

Re: filenames with dates for episode names

Posted: 12 Oct 2015, 18:35
by rednoah
Added additional date patterns. Fixed with r3230.