diff options
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.service.ts | 6 |
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 @@ | |||
1 | import { FfprobeData } from 'fluent-ffmpeg' | ||
2 | import { Observable } from 'rxjs' | 1 | import { Observable } from 'rxjs' |
3 | import { catchError, map, switchMap } from 'rxjs/operators' | 2 | import { catchError, map, switchMap } from 'rxjs/operators' |
4 | import { HttpClient, HttpParams, HttpRequest } from '@angular/common/http' | 3 | import { 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' |
24 | import { environment } from '../../../../environments/environment' | 24 | import { environment } from '../../../../environments/environment' |
25 | import { Account, AccountService } from '../account' | 25 | import { 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 | ) |