Foohy / jazztronauts

Jazztronauts is a cooperative theft-em-up for Garry's Mod, also known as prop hunt 2.
122 stars 35 forks source link

Improve map scraper filter #179

Closed Commenter25 closed 6 months ago

Commenter25 commented 1 year ago

Closes #75

Added the phrases nav, node, and icon, to weed out all the navmesh and icon pack addons. Filter is now case-insensitive. Added an additional check for sexual content, to please stupid little 2019 me. Also added a shebang so the script is recognized as Python by shells. Also converted the script to tabs for consistency. Did the tabs in a separate commit so the diffs could be readable.

SageJFox commented 1 year ago

My concern is sometimes they do upload the map itself with the added nav mesh that's listed in the title. Do we want to risk potentially excluding some maps with this? I'd assume a lot of them have non-nav'd versions up on the workshop, but this isn't a guarantee.

Commenter25 commented 1 year ago

From what I've seen, this is a rarity. It definitely happens, but usually people just upload the navmesh itself. And regardless, it may not be clearly stated in the title, and I think most players would rather just skip it. I don't think I've seen any original uploads that mention a navmesh in the title, I'd have to assume that's an extremely small minority.