oleoo icon indicating copy to clipboard operation
oleoo copied to clipboard

Year not parsed when a filename starts with a year.

Open markg85 opened this issue 9 months ago β€’ 0 comments

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.

markg85 avatar Feb 18 '25 01:02 markg85