guessit-io / guessit

GuessIt is a python library that extracts as much information as possible from a video filename.
https://guessit-io.github.io/guessit
GNU Lesser General Public License v3.0
814 stars 92 forks source link

Episode title parsed as source & streaming service #709

Closed vevv closed 2 years ago

vevv commented 2 years ago

Filename: Archer.2009.S12E05.Shots.720p.HULU.WEB-DL.DDP5.1.H.264-NOGRP Output:

    "title": "Archer",
    "year": 2009,
    "season": 12,
    "episode": 5,
    "streaming_service": [
        "Showtime",
        "Hulu"
    ],
    "source": [
        "Telesync",
        "Web"
    ],
    "screen_size": "720p",
    "audio_codec": "Dolby Digital Plus",
    "audio_channels": "5.1",
    "video_codec": "H.264",
    "release_group": "NOGRP",
    "type": "episode"
}

Intended result:

    "title": "Archer",
    "year": 2009,
    "season": 12,
    "episode": 5,
    "episode_title": "Shots",
    "screen_size": "720p",
    "streaming_service": "Hulu",
    "source": "Web",
    "audio_codec": "Dolby Digital Plus",
    "audio_channels": "5.1",
    "video_codec": "H.264",
    "release_group": "NOGRP",
    "type": "episode"
}

Changing the title to just Sho, XXXTs, Shotz etc works as intended. Changing the title to just TS matches Telesync, but that's less of an issue as chances of it being an actual episode title are low.