parse-torrent-name icon indicating copy to clipboard operation
parse-torrent-name copied to clipboard

How to parse 2012 (2009 movie)?

Open lordn-n opened this issue 4 years ago • 1 comments

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)

lordn-n avatar Apr 12 '20 01:04 lordn-n

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

roidayan avatar Apr 19 '20 11:04 roidayan