-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
305f86b
commit 64a9e2a
Showing
16 changed files
with
406 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
::: pynyaa._enums.NyaaCategory | ||
::: pynyaa._enums.Category | ||
options: | ||
members: true | ||
::: pynyaa._enums.NyaaFilter | ||
::: pynyaa._enums.Filter | ||
options: | ||
members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
|
||
def main() -> None: | ||
""" | ||
Pretty simple CLI implementation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,64 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Annotated, Literal | ||
|
||
from pydantic import AnyUrl, UrlConstraints | ||
from typing_extensions import Annotated | ||
|
||
MagnetUrl = Annotated[AnyUrl, UrlConstraints(allowed_schemes=["magnet"])] | ||
"""Url that only allows magnets.""" | ||
|
||
CategoryName = Literal[ | ||
"All", | ||
"Anime", | ||
"Anime - Anime Music Video", | ||
"Anime - English-translated", | ||
"Anime - Non-English-translated", | ||
"Anime - Raw", | ||
"Audio", | ||
"Audio - Lossless", | ||
"Audio - Lossy", | ||
"Literature", | ||
"Literature - English-translated", | ||
"Literature - Non-English-translated", | ||
"Literature - Raw", | ||
"Live Action", | ||
"Live Action - English-translated", | ||
"Live Action - Idol/Promotional Video", | ||
"Live Action - Non-English-translated", | ||
"Live Action - Raw", | ||
"Pictures", | ||
"Pictures - Graphics", | ||
"Pictures - Photos", | ||
"Software", | ||
"Software - Applications", | ||
"Software - Games", | ||
] | ||
|
||
CategoryID = Literal[ | ||
"0_0", | ||
"1_0", | ||
"1_1", | ||
"1_2", | ||
"1_3", | ||
"1_4", | ||
"2_0", | ||
"2_1", | ||
"2_2", | ||
"3_0", | ||
"3_1", | ||
"3_2", | ||
"3_3", | ||
"4_0", | ||
"4_1", | ||
"4_2", | ||
"4_3", | ||
"4_4", | ||
"5_0", | ||
"5_1", | ||
"5_2", | ||
"6_0", | ||
"6_1", | ||
"6_2", | ||
] | ||
|
||
SortName = Literal["comments", "size", "id", "datetime", "seeders", "leechers", "downloads"] |
Oops, something went wrong.