mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 08:46:54 -06:00
We don't need to load complete description anymore
It's already included in classic payload
This commit is contained in:
parent
8e0144a089
commit
6ff42dff2a
@ -37,9 +37,7 @@ export class VideoUpdateResolver {
|
|||||||
|
|
||||||
private buildVideoObservables (video: VideoDetails) {
|
private buildVideoObservables (video: VideoDetails) {
|
||||||
return [
|
return [
|
||||||
this.videoService
|
of(video),
|
||||||
.loadCompleteDescription(video.descriptionPath)
|
|
||||||
.pipe(map(description => Object.assign(video, { description }))),
|
|
||||||
|
|
||||||
this.videoService.getSource(video.id),
|
this.videoService.getSource(video.id),
|
||||||
|
|
||||||
|
@ -379,17 +379,6 @@ export class VideoService {
|
|||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
loadCompleteDescription (descriptionPath: string) {
|
|
||||||
return this.authHttp
|
|
||||||
.get<{ description: string }>(environment.apiUrl + descriptionPath)
|
|
||||||
.pipe(
|
|
||||||
map(res => res.description),
|
|
||||||
catchError(err => this.restExtractor.handleError(err))
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
generateDownloadUrl (options: {
|
generateDownloadUrl (options: {
|
||||||
video: Video
|
video: Video
|
||||||
files: VideoFile[]
|
files: VideoFile[]
|
||||||
|
Loading…
Reference in New Issue
Block a user