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
820 stars 92 forks source link

Parts of some release groups are stripped out #297

Closed ratoaq2 closed 7 years ago

ratoaq2 commented 8 years ago
+-------------------------------------------------------+
+                   GuessIt 2.0.5                       +
+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|     https://github.com/guessit-io/guessit/issues.     |
+-------------------------------------------------------+

I believe this is a side effect of some reserved words and I can workaround it using expected_group parameter (e.g.: `-G 're:\bNovaRip\b')

Here are some examples:

guessit Blindspot.1x02.Taylor.Shaw.ITA.DLMux.x264-NovaRip
For: Blindspot.1x02.Taylor.Shaw.ITA.DLMux.x264-NovaRip
GuessIt found: {
    "title": "Blindspot", 
    "season": 1, 
    "episode": 2, 
    "episode_title": "Taylor Shaw ITA DLMux", 
    "video_codec": "h264", 
    "release_group": "Nov", 
    "type": "episode"
}
guessit Anthony.Bourdain.No.Reservations.S01E01.INTERNAL.DVDRip.XviD-PARTiCLE
For: Anthony.Bourdain.No.Reservations.S01E01.INTERNAL.DVDRip.XviD-PARTiCLE
GuessIt found: {
    "title": "Anthony Bourdain No Reservations", 
    "season": 1, 
    "episode": 1, 
    "episode_title": "INTERNAL", 
    "format": "DVD", 
    "video_codec": "XviD", 
    "release_group": "TiCLE", 
    "type": "episode"
}
guessit Banshee.S04E03.Job.VOSTFR.720p.HDTV.x265-POURMOi
For: Banshee.S04E03.Job.VOSTFR.720p.HDTV.x265-POURMOi
GuessIt found: {
    "title": "Banshee", 
    "season": 4, 
    "episode": 3, 
    "episode_title": "Job", 
    "subtitle_language": "French", 
    "screen_size": "720p", 
    "format": "HDTV", 
    "video_codec": "h265", 
    "release_group": "MOi", 
    "type": "episode"
}
guessit Once.Upon.A.Time.S04E14.1080p.Bluray.AC3.ITA.DTS.HD.MA.ENG.x264-byEMP
For: Once.Upon.A.Time.S04E14.1080p.Bluray.AC3.ITA.DTS.HD.MA.ENG.x264-byEMP
GuessIt found: {
    "title": "Once Upon A Time", 
    "season": 4, 
    "episode": 14, 
    "screen_size": "1080p", 
    "format": "BluRay", 
    "audio_codec": [
        "AC3", 
        "DTS"
    ], 
    "language": [
        "Italian", 
        "English"
    ], 
    "audio_profile": "HDMA", 
    "video_codec": "h264", 
    "release_group": "EMP", 
    "type": "episode"
}
guessit The.100.S03E08.FASTSUB.VOSTFR.720p.WebRip.x264-RipPourBox
For: The.100.S03E08.FASTSUB.VOSTFR.720p.WebRip.x264-RipPourBox
GuessIt found: {
    "title": "The 100", 
    "season": 3, 
    "episode": 8, 
    "subtitle_language": [
        "Persian", 
        "French"
    ], 
    "other": "Fastsub", 
    "screen_size": "720p", 
    "format": "WEBRip", 
    "video_codec": "h264", 
    "release_group": "Box", 
    "type": "episode"
}
guessit The.Flash.2014.S02E11.720p.HDTV.x264.AC3-RiPRG
For: The.Flash.2014.S02E11.720p.HDTV.x264.AC3-RiPRG
GuessIt found: {
    "title": "The Flash", 
    "year": 2014, 
    "season": 2, 
    "episode": 11, 
    "screen_size": "720p", 
    "format": "HDTV", 
    "video_codec": "h264", 
    "audio_codec": "AC3", 
    "release_group": "RG", 
    "type": "episode"
}
guessit Bones.S08.NORDiC.PAL.DVDR-TV2LAX9
For: Bones.S08.NORDiC.PAL.DVDR-TV2LAX9
GuessIt found: {
    "title": "Bones", 
    "season": 8, 
    "episode_title": "NORDiC", 
    "other": "PAL", 
    "format": "DVD", 
    "release_group": "TV2LA", 
    "bonus": 9, 
    "type": "episode"
}
guessit Brooklyn.Nine-Nine.-.2x01.HDTV.x264.SPANISH.AUDIO-ELITETORRENT
For: Brooklyn.Nine-Nine.-.2x01.HDTV.x264.SPANISH.AUDIO-ELITETORRENT
GuessIt found: {
    "title": "Brooklyn Nine-Nine", 
    "season": 2, 
    "episode": 1, 
    "format": "HDTV", 
    "video_codec": "h264", 
    "language": "Spanish", 
    "type": "episode"
}
ratoaq2 commented 8 years ago

Another one:

The.Night.Of.S01E05.720p.HDTV.450MB.-.NBY 
Detected Group: NB
Should be: NBY

It tries to remove by and it ends up with NB: https://github.com/guessit-io/guessit/blob/master/guessit/rules/properties/release_group.py#L50