diff options
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r-- | client/src/app/shared/shared-main/video-caption/video-caption.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts index 67eb09e4d..00ebe5bc6 100644 --- a/client/src/app/shared/shared-main/video-caption/video-caption.service.ts +++ b/client/src/app/shared/shared-main/video-caption/video-caption.service.ts | |||
@@ -7,8 +7,8 @@ import { objectToFormData, sortBy } from '@app/helpers' | |||
7 | import { VideoService } from '@app/shared/shared-main/video' | 7 | import { VideoService } from '@app/shared/shared-main/video' |
8 | import { peertubeTranslate } from '@shared/core-utils/i18n' | 8 | import { peertubeTranslate } from '@shared/core-utils/i18n' |
9 | import { ResultList, VideoCaption } from '@shared/models' | 9 | import { ResultList, VideoCaption } from '@shared/models' |
10 | import { VideoCaptionEdit } from './video-caption-edit.model' | ||
11 | import { environment } from '../../../../environments/environment' | 10 | import { environment } from '../../../../environments/environment' |
11 | import { VideoCaptionEdit } from './video-caption-edit.model' | ||
12 | 12 | ||
13 | @Injectable() | 13 | @Injectable() |
14 | export class VideoCaptionService { | 14 | export class VideoCaptionService { |
@@ -69,6 +69,6 @@ export class VideoCaptionService { | |||
69 | } | 69 | } |
70 | 70 | ||
71 | getCaptionContent ({ captionPath }: Pick<VideoCaption, 'captionPath'>) { | 71 | getCaptionContent ({ captionPath }: Pick<VideoCaption, 'captionPath'>) { |
72 | return this.authHttp.get(`${environment.originServerUrl}${captionPath}`, { responseType: 'text' }) | 72 | return this.authHttp.get(environment.originServerUrl + captionPath, { responseType: 'text' }) |
73 | } | 73 | } |
74 | } | 74 | } |