Compare commits

..

No commits in common. "66fca53dfcfa88654838f9114bd3398b70f10dea" and "78755f401980ecae846ed295935018c52dee2d26" have entirely different histories.

13 changed files with 2059 additions and 2076 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']) && $data['total_length'] > 0): ?> <?php if (isset($data['total_length'], $data['episode_count']) && ! empty($data['total_length'])): ?>
<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(first: 100) { categories {
nodes { nodes {
title title
} }
} }
characters(first: 100) { characters {
nodes { nodes {
character { character {
id id
@ -59,13 +59,13 @@ query ($slug: String!) {
season season
sfw sfw
slug slug
mappings(first: 10) { mappings {
nodes { nodes {
externalId externalId
externalSite externalSite
} }
} }
staff(first: 100) { staff {
nodes { nodes {
person { person {
id id
@ -101,7 +101,7 @@ query ($slug: String!) {
} }
} }
status status
streamingLinks(first: 10) { streamingLinks {
nodes { nodes {
dubs dubs
subs subs

View File

@ -17,12 +17,12 @@ query ($id: ID!) {
width width
} }
} }
categories(first: 100) { categories {
nodes { nodes {
title title
} }
} }
characters(first: 100) { characters {
nodes { nodes {
character { character {
id id
@ -59,13 +59,13 @@ query ($id: ID!) {
season season
sfw sfw
slug slug
mappings(first: 10) { mappings {
nodes { nodes {
externalId externalId
externalSite externalSite
} }
} }
staff(first: 100) { staff {
nodes { nodes {
person { person {
id id
@ -101,18 +101,6 @@ 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(first: 100) { media {
nodes { nodes {
media { media {
id id
@ -40,7 +40,7 @@ query ($slug: String!) {
} }
type type
} }
voices(first: 100) { voices {
nodes { nodes {
id id
licensor { licensor {

View File

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

View File

@ -14,12 +14,12 @@ query($id: ID!) {
id id
slug slug
ageRating ageRating
categories(first: 100) { categories {
nodes { nodes {
title title
} }
} }
mappings(first: 10) { mappings {
nodes { nodes {
externalId externalId
externalSite externalSite
@ -48,7 +48,7 @@ query($id: ID!) {
...on Anime { ...on Anime {
episodeCount episodeCount
episodeLength episodeLength
streamingLinks(first: 10) { streamingLinks {
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(first: 100) { libraryEvents {
nodes { nodes {
id id
changedData changedData

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff