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

Greatly improves addon's ability to successfully parse content with '… #132

Closed
wants to merge 1 commit into from

Conversation

KevinBowen0
Copy link

…messy' file/directory names not in kodi-recommended format.

For reference, as a brand new Kodi user, when I pointed it at my pre-existing movie library (entirely unsorted and unstructured), it was able to successfully scan and import fewer than half of my movies. With this patch, it gets almost 100%.

It works by just applying mostly-regex based heuristics to strip non-title/date-related junk from the title/filename it's passed.

Crucially, it only attempts heuristics if it first fails to get a match the ordinary way, so it will have no effect on users who do choose to organize their libraries in Kodi-recommended format.

…messy' file/directory names not in kodi-recommended format
@rmrector
Copy link
Contributor

rmrector commented Mar 9, 2022

Cheers.

However, Kodi already cleans titles before passing them to scrapers. Any adjustments to that process should be applied to Kodi itself, not implemented in a single scraper.

@KevinBowen0
Copy link
Author

KevinBowen0 commented Mar 9, 2022 via email

@rmrector
Copy link
Contributor

It is configured with advancedsettings.xml, which is introduced to the codebase at AdvancedSettings.cpp m_videoCleanDateTimeRegExp and m_videoCleanStringRegExps.

@rmrector rmrector closed this Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants