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

How to parse 2012 (2009 movie)? #28

Open
lordn-n opened this issue Apr 12, 2020 · 1 comment
Open

How to parse 2012 (2009 movie)? #28

lordn-n opened this issue Apr 12, 2020 · 1 comment

Comments

@lordn-n
Copy link

lordn-n commented Apr 12, 2020

This is a though one...
Parsing 2012.2009.BluRay.1080p.x264.YIFY.mp4
produce:

{
    "year": 2012,
    "resolution": "1080p",
    "quality": "BluRay",
    "codec": "x264",
    "container": "mp4",
    "title": "2009",
    "excess": "YIFY"
}

Maybe the order in which takes the thinks? maybe first look for the title (which is always first on the string)

@roidayan
Copy link
Contributor

good idea. look for year after first separator. up to the first separator it must be the title

roidayan added a commit to roidayan/parse-torrent-name that referenced this issue May 4, 2020
roidayan added a commit to roidayan/parse-torrent-name that referenced this issue May 4, 2020
roidayan added a commit to roidayan/parse-torrent-name that referenced this issue Jun 12, 2020
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

No branches or pull requests

2 participants