initial commit
This commit is contained in:
0
src/anilistapi/queries/__init__.py
Normal file
0
src/anilistapi/queries/__init__.py
Normal file
54
src/anilistapi/queries/manga.py
Normal file
54
src/anilistapi/queries/manga.py
Normal file
@@ -0,0 +1,54 @@
|
||||
MANGA_QUERY = """
|
||||
query media($search: String) {
|
||||
Page {
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
}
|
||||
media(type: MANGA, search: $search) {
|
||||
id
|
||||
title {
|
||||
romaji
|
||||
english
|
||||
native
|
||||
}
|
||||
synonyms
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
MANGA_ID_QUERY = """
|
||||
query media($id: Int) { # Define which variables will be used in the query (id)
|
||||
Media (type: MANGA, id:$id) { # Insert our variables into the query arguments (id)
|
||||
id
|
||||
title {
|
||||
romaji
|
||||
english
|
||||
native
|
||||
}
|
||||
synonyms
|
||||
format
|
||||
type
|
||||
status(version:2)
|
||||
genres
|
||||
tags{
|
||||
name
|
||||
isAdult
|
||||
}
|
||||
description
|
||||
coverImage {
|
||||
large
|
||||
|
||||
}
|
||||
isAdult
|
||||
chapters
|
||||
volumes
|
||||
externalLinks {
|
||||
site
|
||||
url
|
||||
type
|
||||
}
|
||||
countryOfOrigin
|
||||
}
|
||||
}
|
||||
"""
|
||||
Reference in New Issue
Block a user