mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
small fix
This commit is contained in:
parent
af138944b5
commit
ebbe715581
1 changed files with 4 additions and 2 deletions
|
|
@ -1105,7 +1105,8 @@ export class TraktService {
|
|||
const history = await this.client.get(
|
||||
`/sync/history/movies/${imdbId}?limit=1`
|
||||
);
|
||||
|
||||
|
||||
const history = response.data;
|
||||
return Array.isArray(history) && history.length > 0;
|
||||
} catch {
|
||||
return false;
|
||||
|
|
@ -1122,7 +1123,8 @@ export class TraktService {
|
|||
`/sync/history/episodes/${showId}`,
|
||||
{ params: { limit: 20 } }
|
||||
);
|
||||
|
||||
|
||||
const history = response.data;
|
||||
if (!Array.isArray(history)) return false;
|
||||
|
||||
for (const entry of history) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue