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
824 stars 91 forks source link

Episode number not parsed when episode range is present in folder name #772

Open zoriya opened 6 months ago

zoriya commented 6 months ago
$ guessit "video/[Erai-raws] Great Teacher Onizuka - 01~43 [480p][Multiple Subtitle]/[Erai-raws] Great Teacher Onizuka - 11 [480p].mkv" 
For: video/[Erai-raws] Great Teacher Onizuka - 01~43 [480p][Multiple Subtitle]/[Erai-raws] Great Teacher Onizuka - 11 [480p].mkv
GuessIt found: {
    "release_group": "Erai-raws",
    "title": "Great Teacher Onizuka",
    "episode": [
        1,
        43
    ],
    "screen_size": "480p",
    "subtitle_language": "Multiple languages",
    "container": "mkv",
    "mimetype": "video/x-matroska",
    "type": "episode"
}

I'd expect guessit to return episode: 11 and not take the folder's range into account.