Greatly improves addon's ability to successfully parse content with '… #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…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.