oleoo
oleoo copied to clipboard
Year not parsed when a filename starts with a year.
2002.Die.Another.Day.1920x804.BDRip.x264.DTS-HD.MA.mkv
is parsed as:
ββββββββββββββ¬ββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β (index) β 0 β Values β
ββββββββββββββΌββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β original β β '2002.die.another.day. .bdrip.x264.dts hd.ma.mkv' β
β language β β 'VO' β
β source β β 'BDRip' β
β encoding β β 'x264' β
β resolution β β null β
β dub β β null β
β year β β null β
β flags β 'DTS' β β
β season β β null β
β episode β β null β
β episodes β β β
β type β β 'movie' β
β group β β null β
β title β β '2002 Die Another Day' β
β generated β β '2002.Die.Another.Day.BDRip.x264.DTS-NOTEAM' β
β score β β 3 β
ββββββββββββββ΄ββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββ
Not sure why. It's parsed just fine if the year is somewhere else in the string.
Title can begin with a number so i do think your current logic is sound. However, if you haven't found a year yet and the title does start with a year-like value then it's probably safe to assume it's not part of the title and in fact a year.