ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't display transcription message with a caption
Chocobozzz5f0f4ba7deb2
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.htmlindex 33a6c041a8..b88abede67 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html@@ -173,7 +173,7 @@<ng-template ngbNavContent><div class="captions">- <div class="alert pt-alert-primary" *ngIf="displayTranscriptionInfo && isTranscriptionEnabled()" i18n>+ <div class="alert pt-alert-primary" *ngIf="displayTranscriptionInfo && isTranscriptionEnabled() && !hasCaptions()" i18n>A subtitle will be automatically generated from your video.</div>diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.tsindex 711111a6b8..2e5e2f267d 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts@@ -430,6 +430,10 @@ export class VideoEditComponent implements OnInit, OnDestroy {return this.serverConfig.videoTranscription.enabled}+ hasCaptions () {+ return this.getExistingCaptions().length !== 0+ }+// ---------------------------------------------------------------------------resetField (name: string) {