Skip to content

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

@JuanjoSalvador

Description

@JuanjoSalvador

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)

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions