parse-torrent-name
parse-torrent-name copied to clipboard
Cant parse only season, multiple season and subs excess with only season
Hello,
Is it possible to add season parsing, if episode is not existing?
The.X.Files.S01.DKsubs.1080p.BluRay.HEVC.x265 - Returns:
{'quality': 'BluRay', 'codec': 'x265', 'resolution': '1080p', 'excess': 'HEVC', 'title': 'The X Files S01 DKsubs'}
I'm in the need of this result
{'quality': 'BluRay', 'season': '1', 'codec': 'x265', 'resolution': '1080p', 'excess': ['HEVC', 'DKsubs'], 'title': 'The X Files'}
Is it also possible to add multiple season parsing?
The.X.Files.S01-S03.DKsubs.1080p.BluRay.HEVC.x265 - Returns:
{'quality': 'BluRay', 'codec': 'x265', 'resolution': '1080p', 'excess': 'HEVC', 'title': 'The X Files S01-S03 DKsubs'}
I'm the need of this result
{'quality': 'BluRay', 'season':['1','2','3'] 'codec': 'x265', 'resolution': '1080p', 'excess': ['HEVC', 'DKsubs'], 'title': 'The X Files'}
Also - if episode is not existing "DKsubs" becomas a part of the title and not in excess.
Thanks
Oh,it seems same problem as I put forward at https://github.com/divijbindlish/parse-torrent-name/issues/15
The regax pattern for season in this package is LIKE ('season', '(s?([0-9]{1,2}))[ex]').It always ask e (or x, as the begining of episode)
In my mind, It is easy to parse only season ( with change season pattern to (s\d{1,2})).
But parse S01-S03 to 'season':['1','2','3'] may difficulty.
I actually work on this and will add pull request when I can for multiple seasons and solve the examples mentioned in this ticket