divijbindlish / parse-torrent-name

Extract media information from a filename
MIT License
215 stars 60 forks source link

Question about the field `group` and `excess` #15

Closed Rhilip closed 7 years ago

Rhilip commented 7 years ago

Version : 1.1.1

In [6]: PTN.__version__
Out[6]: '1.1.1'

Hey, Although you mentioned in the documentation that "PTN does not gaurantee the fields group, excess and episodeName as these fields might be interchanged with each other.".But I still feel that some problems exist when I use.

For example,

In [5]: PTN.parse("Veep.S06E05.720p.HDTV.x264-AVS.mkv")
Out[5]:
{'codec': 'x264',
 'container': 'mkv',
 'episode': 5,
 'group': 'AVS.mkv',
 'quality': 'HDTV',
 'resolution': '720p',
 'season': 6,
 'title': 'Veep'}

Also, Some TV episodes (mainly Asian episodes), their episode tag may start as ep,( For example Boku.Unmei.no.Hito.desu.Ep07.Chi_Jap.HDTVrip.1280X720-ZhuixinFan.mp4),I hope it can be support by your package.

Thank you for your time

roidayan commented 7 years ago

I added pull request #18 and it seems "The.Flash.2014.S03.720p.HDTV.x264-Scene" extract season ok.

roidayan commented 7 years ago

As for removing BT sites from group names like KILLERS[ettv] it could be hard because you don't know if the brackets should be there or not. I guess it is possible though to make a list of known tags like ettz eztv etc and remove those.

roidayan commented 7 years ago

same for MKV. it is a guess because "mkv" string found but stripping from group name is difficult if "mkv" is part of the name. can guess that a ".mkv$" can be treated as file extension and stripped.

Rhilip commented 7 years ago

Thanks a lot for your work~

roidayan commented 7 years ago

no problem. though i'm not the maintainer. just added pull request and need to wait for the maintainer to approve.