CurseForgeBadge-Unofficial
CurseForgeBadge-Unofficial copied to clipboard
Search mods by slug instead of generic search
Should fix #43. If a more generic search is necessary, some edits can be made.
Using only slug or name is too limited, maybe a fall back to slug when name yields no results?
Using only slug or name is too limited, maybe a fall back to slug when name yields no results?
Really? It seems to me that the code limits the search to slugs only down here anyway: https://github.com/way2muchnoise/CurseForgeBadge-Unofficial/blob/e26063112d099140222467f5e956757ccc907d96/CFReader.py#L32-L35
There's no other conditional searches that follow or precede it. All it does is search and look for a slug with the name of the search filter in lowercase. I'll run the code and see if it works for each scenario, though now that I look at the code it seems I'll need to give get_downloads_author() some more attention. Simply searching for a slug might not work there.