mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-10 20:10:54 +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(
|
const history = await this.client.get(
|
||||||
`/sync/history/movies/${imdbId}?limit=1`
|
`/sync/history/movies/${imdbId}?limit=1`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const history = response.data;
|
||||||
return Array.isArray(history) && history.length > 0;
|
return Array.isArray(history) && history.length > 0;
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1122,7 +1123,8 @@ export class TraktService {
|
||||||
`/sync/history/episodes/${showId}`,
|
`/sync/history/episodes/${showId}`,
|
||||||
{ params: { limit: 20 } }
|
{ params: { limit: 20 } }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const history = response.data;
|
||||||
if (!Array.isArray(history)) return false;
|
if (!Array.isArray(history)) return false;
|
||||||
|
|
||||||
for (const entry of history) {
|
for (const entry of history) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue