Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rbtr opened this issue Jun 28, 2020 · 0 comments
Assignees
Labels
bug something isn't working

Comments

@rbtr
Copy link
Owner

rbtr commented Jun 28, 2020

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 rbtr added the bug something isn't working label Jun 28, 2020
@rbtr rbtr self-assigned this Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant