Compare commits

...

3 Commits

Author SHA1 Message Date
Timothy Warren 66fca53dfc Only show total length of a series if the number is positive
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good Details
2020-09-09 10:24:55 -04:00
Timothy Warren 3b754ce634 Update GraphQL schema for Kitsu 2020-09-09 10:24:12 -04:00
Timothy Warren 44e1039067 Add limit to all relationships 2020-09-09 10:23:17 -04:00
13 changed files with 2076 additions and 2059 deletions

View File

@ -36,7 +36,7 @@ use function Aviat\AnimeClient\getLocalImg;
</tr> </tr>
<?php endif ?> <?php endif ?>
<?php if (isset($data['total_length'], $data['episode_count']) && ! empty($data['total_length'])): ?> <?php if (isset($data['total_length'], $data['episode_count']) && $data['total_length'] > 0): ?>
<tr> <tr>
<td>Total Length</td> <td>Total Length</td>
<td><?= Kitsu::friendlyTime($data['total_length']) ?></td> <td><?= Kitsu::friendlyTime($data['total_length']) ?></td>

View File

@ -17,12 +17,12 @@ query ($slug: String!) {
width width
} }
} }
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
characters { characters(first: 100) {
nodes { nodes {
character { character {
id id
@ -59,13 +59,13 @@ query ($slug: String!) {
season season
sfw sfw
slug slug
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
} }
} }
staff { staff(first: 100) {
nodes { nodes {
person { person {
id id
@ -101,7 +101,7 @@ query ($slug: String!) {
} }
} }
status status
streamingLinks { streamingLinks(first: 10) {
nodes { nodes {
dubs dubs
subs subs

View File

@ -17,12 +17,12 @@ query ($id: ID!) {
width width
} }
} }
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
characters { characters(first: 100) {
nodes { nodes {
character { character {
id id
@ -59,13 +59,13 @@ query ($id: ID!) {
season season
sfw sfw
slug slug
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
} }
} }
staff { staff(first: 100) {
nodes { nodes {
person { person {
id id
@ -101,6 +101,18 @@ query ($id: ID!) {
} }
} }
status status
streamingLinks(first: 10) {
nodes {
dubs
subs
regions
streamer {
id
siteName
}
url
}
}
subtype subtype
titles { titles {
alternatives alternatives

View File

@ -13,7 +13,7 @@ query ($slug: String!) {
canonicalLocale canonicalLocale
localized localized
}, },
media { media(first: 100) {
nodes { nodes {
media { media {
id id
@ -40,7 +40,7 @@ query ($slug: String!) {
} }
type type
} }
voices { voices(first: 100) {
nodes { nodes {
id id
licensor { licensor {

View File

@ -1,7 +1,12 @@
query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) { query (
$slug: String!,
$type: media_type!,
$status: [LibraryEntryStatus!],
$after: String
) {
findProfileBySlug(slug: $slug) { findProfileBySlug(slug: $slug) {
library { library {
all(mediaType: $type, status: $status) { all(first: 100, after: $after, mediaType: $type, status: $status) {
pageInfo { pageInfo {
endCursor endCursor
hasNextPage hasNextPage
@ -24,12 +29,12 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
id id
ageRating ageRating
ageRatingGuide ageRatingGuide
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
@ -60,7 +65,7 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
} }
...on Anime { ...on Anime {
episodeCount episodeCount
streamingLinks { streamingLinks(first: 10) {
nodes { nodes {
dubs dubs
subs subs

View File

@ -1,7 +1,7 @@
query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) { query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
findProfileBySlug(slug: $slug) { findProfileBySlug(slug: $slug) {
library { library {
all(mediaType: $type, status: $status) { all(first: 1, mediaType: $type, status: $status) {
totalCount totalCount
} }
} }

View File

@ -14,12 +14,12 @@ query($id: ID!) {
id id
slug slug
ageRating ageRating
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
@ -48,7 +48,7 @@ query($id: ID!) {
...on Anime { ...on Anime {
episodeCount episodeCount
episodeLength episodeLength
streamingLinks { streamingLinks(first: 10) {
nodes { nodes {
dubs dubs
subs subs

View File

@ -1,6 +1,6 @@
query ($slug: String!) { query ($slug: String!) {
findProfileBySlug(slug: $slug) { findProfileBySlug(slug: $slug) {
libraryEvents { libraryEvents(first: 100) {
nodes { nodes {
id id
changedData changedData

View File

@ -17,14 +17,14 @@ query ($slug: String!) {
width width
} }
} }
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
chapterCount chapterCount
volumeCount volumeCount
characters { characters(first: 100) {
nodes { nodes {
character { character {
id id
@ -54,7 +54,7 @@ query ($slug: String!) {
description description
startDate startDate
endDate endDate
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
@ -76,7 +76,7 @@ query ($slug: String!) {
} }
sfw sfw
slug slug
staff { staff(first: 100) {
nodes { nodes {
person { person {
id id

View File

@ -17,14 +17,14 @@ query ($id: ID!) {
width width
} }
} }
categories { categories(first: 100) {
nodes { nodes {
title title
} }
} }
chapterCount chapterCount
volumeCount volumeCount
characters { characters(first: 100) {
nodes { nodes {
character { character {
id id
@ -54,7 +54,7 @@ query ($id: ID!) {
description description
startDate startDate
endDate endDate
mappings { mappings(first: 10) {
nodes { nodes {
externalId externalId
externalSite externalSite
@ -76,7 +76,7 @@ query ($id: ID!) {
} }
sfw sfw
slug slug
staff { staff(first: 100) {
nodes { nodes {
person { person {
id id

View File

@ -22,7 +22,7 @@ query ($slug: String!) {
canonical canonical
localized localized
} }
mediaStaff { mediaStaff(first: 100) {
nodes { nodes {
id id
role role
@ -52,7 +52,7 @@ query ($slug: String!) {
} }
} }
} }
voices { voices(first: 100) {
nodes { nodes {
locale locale
mediaCharacter { mediaCharacter {

View File

@ -24,13 +24,13 @@ query ($slug: String!) {
proMessage proMessage
proTier proTier
slug slug
siteLinks { siteLinks(first: 20) {
nodes { nodes {
id id
url url
} }
} }
favorites { favorites(first: 100) {
nodes { nodes {
id id
item { item {

File diff suppressed because it is too large Load Diff