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

Release group casing from path #776

Open noxxusnx opened 1 month ago

noxxusnx commented 1 month ago

If you have a different casing of the release group name in your filepath, that takes precedent over the group name at the end of the file path. For example:

from guessit import guessit

guessit("/mnt/user/Hellboy.2019.1080p.DS4K.BluRay.x265.TrueHD.Atmos.7.1-NOXXUS.mkv")['release_group'] 
# returns "NOXXUS" as expected

guessit("/mnt/user/noxxus/Hellboy.2019.1080p.DS4K.BluRay.x265.TrueHD.Atmos.7.1-NOXXUS.mkv")['release_group'] 
# returns "noxxus"

guessit("/mnt/user/noXxus/Hellboy.2019.1080p.DS4K.BluRay.x265.TrueHD.Atmos.7.1-NOXXUS.mkv")['release_group'] 
# returns noXxus