mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-29 12:23:01 +00:00
small fix
This commit is contained in:
parent
af138944b5
commit
ebbe715581
1 changed files with 4 additions and 2 deletions
|
|
@ -1106,6 +1106,7 @@ export class TraktService {
|
||||||
`/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;
|
||||||
|
|
@ -1123,6 +1124,7 @@ export class TraktService {
|
||||||
{ 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