diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-26 08:37:26 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:28:14 +0200 |
commit | 583eb04b541175035d6d452ca626a96ebf2b7437 (patch) | |
tree | 114ba0a7004b4b2a7fc77444ef5fcb73414c6e93 /client/src/app/shared/shared-main | |
parent | 4504f09f6e85f09b0489debb547a17209d7176ea (diff) | |
download | PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.gz PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.zst PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.zip |
Upgrade to angular 10
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 | ) |