aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video/video.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video/video.service.ts')
-rw-r--r--client/src/app/shared/shared-main/video/video.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts
index ee3549695..edaefa9f2 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -1,4 +1,3 @@
1import { FfprobeData } from 'fluent-ffmpeg'
2import { Observable } from 'rxjs' 1import { Observable } from 'rxjs'
3import { catchError, map, switchMap } from 'rxjs/operators' 2import { catchError, map, switchMap } from 'rxjs/operators'
4import { HttpClient, HttpParams, HttpRequest } from '@angular/common/http' 3import { HttpClient, HttpParams, HttpRequest } from '@angular/common/http'
@@ -19,7 +18,8 @@ import {
19 VideoFilter, 18 VideoFilter,
20 VideoPrivacy, 19 VideoPrivacy,
21 VideoSortField, 20 VideoSortField,
22 VideoUpdate 21 VideoUpdate,
22 VideoFileMetadata
23} from '@shared/models' 23} from '@shared/models'
24import { environment } from '../../../../environments/environment' 24import { environment } from '../../../../environments/environment'
25import { Account, AccountService } from '../account' 25import { Account, AccountService } from '../account'
@@ -275,7 +275,7 @@ export class VideoService implements VideosProvider {
275 275
276 getVideoFileMetadata (metadataUrl: string) { 276 getVideoFileMetadata (metadataUrl: string) {
277 return this.authHttp 277 return this.authHttp
278 .get<FfprobeData>(metadataUrl) 278 .get<VideoFileMetadata>(metadataUrl)
279 .pipe( 279 .pipe(
280 catchError(err => this.restExtractor.handleError(err)) 280 catchError(err => this.restExtractor.handleError(err))
281 ) 281 )