diff options
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/video-download.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-download.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.ts b/client/src/app/shared/shared-video-miniature/video-download.component.ts index bbda39c2d..47482caaa 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-download.component.ts | |||
@@ -4,6 +4,7 @@ import { tap } from 'rxjs/operators' | |||
4 | import { Component, ElementRef, Inject, LOCALE_ID, ViewChild } from '@angular/core' | 4 | import { Component, ElementRef, Inject, LOCALE_ID, ViewChild } from '@angular/core' |
5 | import { AuthService, HooksService, Notifier } from '@app/core' | 5 | import { AuthService, HooksService, Notifier } from '@app/core' |
6 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | 6 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' |
7 | import { logger } from '@root-helpers/logger' | ||
7 | import { VideoCaption, VideoFile, VideoPrivacy } from '@shared/models' | 8 | import { VideoCaption, VideoFile, VideoPrivacy } from '@shared/models' |
8 | import { BytesPipe, NumberFormatterPipe, VideoDetails, VideoService } from '../shared-main' | 9 | import { BytesPipe, NumberFormatterPipe, VideoDetails, VideoService } from '../shared-main' |
9 | 10 | ||
@@ -142,7 +143,7 @@ export class VideoDownloadComponent { | |||
142 | .find(f => f.resolution.id === this.resolutionId) | 143 | .find(f => f.resolution.id === this.resolutionId) |
143 | 144 | ||
144 | if (!file) { | 145 | if (!file) { |
145 | console.error('Could not find file with resolution %d.', this.resolutionId) | 146 | logger.error(`Could not find file with resolution ${this.resolutionId}`) |
146 | return undefined | 147 | return undefined |
147 | } | 148 | } |
148 | 149 | ||
@@ -175,7 +176,7 @@ export class VideoDownloadComponent { | |||
175 | .find(c => c.language.id === this.subtitleLanguageId) | 176 | .find(c => c.language.id === this.subtitleLanguageId) |
176 | 177 | ||
177 | if (!caption) { | 178 | if (!caption) { |
178 | console.error('Cannot find caption %s.', this.subtitleLanguageId) | 179 | logger.error(`Cannot find caption ${this.subtitleLanguageId}`) |
179 | return undefined | 180 | return undefined |
180 | } | 181 | } |
181 | 182 | ||