vidalvanbergen / ViMediaManager

Media Manager for Mac OS X
http://vidalvanbergen.github.com/ViMediaManager/
93 stars 7 forks source link

years, in [] or () #11

Closed alpha1125 closed 11 years ago

alpha1125 commented 11 years ago

a lot of the folders that I have is enclosed in [] or ().

perhaps allowing multiple styles (regex?) would be better off...

vidalvanbergen commented 11 years ago

Could you give an example or two? and i'm not sure what the problem is, does ViMM not recognize the year somewhere you would expect it to?

alpha1125 commented 11 years ago

The folder name is: Men in Black 3[2012]blahblahblah If the folder was named "Men in Black 3 (2012)" ViMM seems to recognize it. Maybe it's not actually the year that's the problem, but it was something I noticed...

vidalvanbergen commented 11 years ago

Where doesn't it recognize it? while scraping?

alpha1125 commented 11 years ago

oh, if you have no brackets to the year, it's also not recognized...

i.e. "Men In Black 3 2012". What I suggest is, something to the effect of looking for the year, towards the end...

a regex to possibly solve this would be something to the effect of: (20|19)[0-9][0-9].*$

which would mean, it'd find 2012, 1912, 20??, 19??, where ?? is two digits. Don't use \d. \d != [0-9]

alpha1125 commented 11 years ago

(1999) - does. [1999] - is not recognized as a year. 1999 - is not recognized as a year.

This is what I've noticed... I could be wrong, I'm a little jet lagged.

alpha1125 commented 11 years ago

okay, I just ran get metadata on the one that 1999, without enclosing, it works now... but didn't work on my initial run. Ignore this bug... I don't think it's valid... and I don't have data to go reproduce it.

I'll open a new issue, if I can accurately reproduce this.