-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce tags for categorization and optional argument --game #2088
base: master
Are you sure you want to change the base?
Conversation
Oh nice I didn't expect to see a pr already |
This is a great feature to be added, but I beleive a Another idea would be to have flags for inlcuding and excluding tags. This way, user can decide to only query sites under the "game" catagory or query all sites except those under the "game" catagory. |
I was messing with a Exclusions would be pretty nice. Perhaps just a My one concern @sdushantha is with regression for already-pulled users. Bit of an afterthought after originally proposing tags. The switch from Adding some sort of versioning to the sites[.]json would possibly help as a forward-looking fix. Let the client check if the version number has advanced, and defer to local if so. Version bump on breaking changes only. |
Great idea @ppfeister, this is very intuitive in my opinion
I agree that keeping the isNsfw is wise to prevent issues for users who have the version of Sherlock which uses isNsfw. As you mentioned, it a versioning of the sites.json file should be created |
So.... reply-to: @sdushantha Played around with schema versioning earlier, and ultimately decided against it. It sounded like a good idea at first, but in the end, it just seemed repetitive. Not quite what was hoped. The whole point of having After bumping the minor, we can greenlight removal of |
@ppfeister Incrementing the minor seems like an effective solution |
Added exception catch for TypeErrors due to future addition of keys, allowing Sherlock to continue past those errors. Removed $schema to accomodate older versions of the parser. This key will be added back in sherlock-project#2088 (or other version incrementing change).
This pull request resolves the issue #2084 . As it was discussed, categorization seems like a useful feature and this pr addresses it with the introduction of tags (Kudos to @ppfeister for the proposal). This required a few modifications, in order to handle nsfw sites, since the boolean isNSFW in the json files was replaced with the String "nsfw" in the site's tags. In addition, optional argument --game was added, which helps search through only game related sites, using the tag "game".