diff options
Diffstat (limited to 'client/src/standalone/videos/shared/playlist-fetcher.ts')
-rw-r--r-- | client/src/standalone/videos/shared/playlist-fetcher.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/standalone/videos/shared/playlist-fetcher.ts b/client/src/standalone/videos/shared/playlist-fetcher.ts index a7e72c177..713d82e3a 100644 --- a/client/src/standalone/videos/shared/playlist-fetcher.ts +++ b/client/src/standalone/videos/shared/playlist-fetcher.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { HttpStatusCode, ResultList, VideoPlaylistElement } from '../../../../../shared/models' | 1 | import { HttpStatusCode, ResultList, VideoPlaylistElement } from '../../../../../shared/models' |
2 | import { logger } from '../../../root-helpers' | ||
2 | import { AuthHTTP } from './auth-http' | 3 | import { AuthHTTP } from './auth-http' |
3 | 4 | ||
4 | export class PlaylistFetcher { | 5 | export class PlaylistFetcher { |
@@ -18,7 +19,7 @@ export class PlaylistFetcher { | |||
18 | playlistResponse = await playlistPromise | 19 | playlistResponse = await playlistPromise |
19 | isResponseOk = playlistResponse.status === HttpStatusCode.OK_200 | 20 | isResponseOk = playlistResponse.status === HttpStatusCode.OK_200 |
20 | } catch (err) { | 21 | } catch (err) { |
21 | console.error(err) | 22 | logger.error(err) |
22 | isResponseOk = false | 23 | isResponseOk = false |
23 | } | 24 | } |
24 | 25 | ||
@@ -49,7 +50,7 @@ export class PlaylistFetcher { | |||
49 | } | 50 | } |
50 | 51 | ||
51 | if (i === 10) { | 52 | if (i === 10) { |
52 | console.error('Cannot fetch all playlists elements, there are too many!') | 53 | logger.error('Cannot fetch all playlists elements, there are too many!') |
53 | } | 54 | } |
54 | 55 | ||
55 | return elements | 56 | return elements |