platelminto / parse-torrent-title

Extract media information from a torrent-like filename

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add genre field

platelminto opened this issue · comments

Some releases list the genre - though quite niche, this does screw some titles as the genre can show up at the end of the title before anything else, so is included in it; some punctuation tends to separate them though, so could look for that. Examples:

  • The Maze Runner Collection - Sci-Fi 2014-2018 Eng Fre Ita Multi-Subs 1080p [H264-mp4]
  • Easy Rider (Drama 1969) Peter Fonda 720p BrRip
  • The Deep Blue Sea - Drama 2011 Eng Rus Multi-Subs 720p [H264-mp4]

If they always show up before the year, this could be a normal pattern, otherwise might have to add to post.py something that looks for a separation from the title itself (like dashes).

Multi-genre is possible and frequent. They also don't only show up before years. Examples:

  • The Kissing Bandit (Comedy West. 1948) Frank Sinatra 720p HD
  • The King of Comedy 1982 DVD9 PAL-iCMAL (would-be false positive)
  • The Mouse on the Moon [1963 - UK] comedy
  • Romantic.Comedy.2019.1080p.AMZN.WEBRip.DDP2.0.x264-TEPES[TGx] (would-be FP)
  • Sugarfoot (Action Western 1951) Randolph Scott

Added in dev, looking to add more genres.