Much improved support for years parsing #30
+28
−3
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.
I've reviewed the following PR's related to this:
They all take the approach of only supporting 2020-2029 or 2020-2039. I'm sure that seems "far enough" ahead, but I'm also sure the original author thought the same thing when they maxed out the original pattern at 2019.
A related issue: This still doesn't handling films with years in the title (e.g. "2001: A Space Odyssey", "Death Race 2000" or "2012") (#20 and #28)
This PR supports years up to 2099, and makes the following changes to support movies with years in the title
2012.2009.BluRay.1080p.x264.YIFY.mp4
or"2001: A Space Odyssey (1968) [BluRay] [1080p] [YTS.AM]
Death Race 2000 (1975) [1080p] [BluRay] [YTS.MX]
Added tests for the above examples, as well as one for a 2020 film