Version 5.1 - All the GraphQL #32
@ -363,7 +363,7 @@ final class SyncLists extends BaseCommand {
|
|||||||
'progress' => $listItem['progress'],
|
'progress' => $listItem['progress'],
|
||||||
// Comparision is done on 1-10 scale,
|
// Comparision is done on 1-10 scale,
|
||||||
// Kitsu returns 1-20 scale.
|
// Kitsu returns 1-20 scale.
|
||||||
'rating' => $listItem['rating'] / 2,
|
'rating' => (int) $listItem['rating'] / 2,
|
||||||
'reconsumeCount' => $listItem['reconsumeCount'],
|
'reconsumeCount' => $listItem['reconsumeCount'],
|
||||||
'reconsuming' => $listItem['reconsuming'],
|
'reconsuming' => $listItem['reconsuming'],
|
||||||
'status' => strtolower($listItem['status']),
|
'status' => strtolower($listItem['status']),
|
||||||
@ -692,7 +692,7 @@ final class SyncLists extends BaseCommand {
|
|||||||
// Anilist returns a rating between 1-100
|
// Anilist returns a rating between 1-100
|
||||||
// Kitsu expects a rating from 1-20
|
// Kitsu expects a rating from 1-20
|
||||||
'rating' => (((int)$anilistItem['data']['rating']) > 0)
|
'rating' => (((int)$anilistItem['data']['rating']) > 0)
|
||||||
? $anilistItem['data']['rating'] / 5
|
? (int) $anilistItem['data']['rating'] / 5
|
||||||
: 0,
|
: 0,
|
||||||
'reconsumeCount' => $anilistItem['data']['reconsumeCount'],
|
'reconsumeCount' => $anilistItem['data']['reconsumeCount'],
|
||||||
'reconsuming' => $anilistItem['data']['reconsuming'],
|
'reconsuming' => $anilistItem['data']['reconsuming'],
|
||||||
|
Loading…
Reference in New Issue
Block a user