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

Wrong streaming service name is parsed for `Presumed.Innocent.S01E03.Discovery.1080p.ATVP.WEB-DL.DDP5.1.Atmos.H.264-RG`, says `Discovery` instead of `ATVP` #782

Open vincejv opened 2 weeks ago

vincejv commented 2 weeks ago

Wrong service name is parsed for Presumed.Innocent.S01E03.Discovery.1080p.ATVP.WEB-DL.DDP5.1.Atmos.H.264-RG, says Discovery instead of ATVP

guessit gets confused because episode name contains the word "Discovery"

Proposed fix: prioritize reading service name from right to left instead of left to right as streaming service name usually is placed before the episode name as a convention

$ guessit --version
+-------------------------------------------------------+
+                   GuessIt 3.8.0                       +
+-------------------------------------------------------+
+                   Rebulk 3.2.0                        +
+-------------------------------------------------------+