X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo-import%2Fvideo-import.service.ts;h=afd9e3fb525fad24951be886fd1fb7eeeff09052;hb=482fa503e545e00252e25eee7b3e0f7d421cf9d4;hp=74c458645a5f152b946d24c18eba5b256aad2bc9;hpb=156c50af3085468a47b8ae73fe8cfcae46b42398;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video-import/video-import.service.ts b/client/src/app/shared/video-import/video-import.service.ts index 74c458645..afd9e3fb5 100644 --- a/client/src/app/shared/video-import/video-import.service.ts +++ b/client/src/app/shared/video-import/video-import.service.ts @@ -9,7 +9,7 @@ import { VideoImportCreate, VideoUpdate } from '../../../../../shared/models/vid import { objectToFormData } from '@app/shared/misc/utils' import { ResultList } from '../../../../../shared/models/result-list.model' import { UserService } from '@app/shared/users/user.service' -import { SortMeta } from 'primeng/components/common/sortmeta' +import { SortMeta } from 'primeng/api' import { RestPagination } from '@app/shared/rest' import { ServerService } from '@app/core' @@ -67,6 +67,7 @@ export class VideoImportService { const description = video.description || null const support = video.support || null const scheduleUpdate = video.scheduleUpdate || null + const originallyPublishedAt = video.originallyPublishedAt || null return { name: video.name, @@ -81,15 +82,16 @@ export class VideoImportService { nsfw: video.nsfw, waitTranscoding: video.waitTranscoding, commentsEnabled: video.commentsEnabled, - downloadingEnabled: video.downloadingEnabled, + downloadEnabled: video.downloadEnabled, thumbnailfile: video.thumbnailfile, previewfile: video.previewfile, - scheduleUpdate + scheduleUpdate, + originallyPublishedAt } } private extractVideoImports (result: ResultList): Observable> { - return this.serverService.localeObservable + return this.serverService.getServerLocale() .pipe( map(translations => { result.data.forEach(d =>