pachinko icon indicating copy to clipboard operation
pachinko copied to clipboard

extracting metadata from filename should start with the file and proceed up the tree, not the reverse

Open rbtr opened this issue 5 years ago • 0 comments

for example, /src/My Cool Show Season 1-2-3-4-5-6-7/My Cool Show S01E01.mkv will be incorrectly matched as "My Cool Show Season 1-2-3-4-5" Season 6 Episode 7, since the path parser extracts metadata from the entire path of the file, lazily, left to right. it would be better to parse the leaf filename initially, then proceed up the dir tree if the full metadata is not present in just the filename. the extraction from the filename should be prioritized over subsequent extractions from the containing dirs, if in conflict.

rbtr avatar Jun 28 '20 19:06 rbtr