Skip to content
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

Feature: Add proper names for filters instead of using numbers #81

Open
JuanjoSalvador opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@JuanjoSalvador
Copy link
Owner

Adding an enum with names for filters will be far more useful than using just numbers.

Current values

0 - No filter (default)
1 - No remakes
2 - Trusted only
from NyaaPy.nyaa import Nyaa

nyaa = Nyaa()
nyaa.search("kimi no na wa", filters=2)

Expected behaviour

from NyaaPy.nyaa import Nyaa
from NyaaPy.nyaa import NyaaFilters as nf

nyaa = Nyaa()
nyaa.search("kimi no na wa", filters=nf.TRUSTED_ONLY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant