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

"3D" for video seems to be string matched only vs placement in the input #771

Open jessielw opened 3 months ago

jessielw commented 3 months ago

Swapping to regex (below) would allow it only to parse if 3D was after the year instead of as a string in the filename. This is important because 3D can be part of a movie name and not and actual indicator of the video having 3D attributes. This is how radarr/TRASH parses this.

"(?<=\b[12]\d{3}\b).*\b(3d|sbs|half[ .-]ou|half[ .-]sbs)\b|\b(BluRay3D)\b|\b(BD3D)\b" https://regex101.com/r/xKOwd3/1

I took an attempt and modifying things slightly in a PR, but it was coming up as an alternate-title, which I'm sure isn't the desired approach here. So I decided to open an issue so it could be discussed.