feat: restrict some genres in mini_anilist

This commit is contained in:
Benex254
2024-09-19 19:12:10 +03:00
parent 6f153f2acb
commit 7c34bc9120
2 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ def search_for_manga_with_anilist(manga_title: str):
pageInfo {
currentPage
}
media(search: $query, type: MANGA) {
media(search: $query, type: MANGA,genre_not_in: ["hentai"]) {
id
idMal
title {
@@ -105,7 +105,7 @@ def search_for_anime_with_anilist(anime_title: str):
currentPage
hasNextPage
}
media(search: $query, type: ANIME) {
media(search: $query, type: ANIME,genre_not_in: ["hentai"]) {
id
idMal
title {
@@ -228,7 +228,7 @@ def get_basic_anime_info_by_title(anime_title: str):
pageInfo {
total
}
media(search: $query, type: ANIME) {
media(search: $query, type: ANIME,genre_not_in: ["hentai"]) {
id
idMal
title {

View File

@@ -124,7 +124,7 @@ class FZF:
stdout=subprocess.PIPE,
universal_newlines=True,
text=True,
encoding="utf-8"
encoding="utf-8",
)
if not result or result.returncode != 0 or not result.stdout:
print("sth went wrong:confused:")
@@ -163,7 +163,7 @@ class FZF:
HEADER,
"--header-first",
"--prompt",
prompt.title(),
f"{prompt.title()}: ",
] # pyright:ignore
if preview: