From e5727108f6ec3da1fb21ffba78d4e47704cc8866 Mon Sep 17 00:00:00 2001 From: KTachibanaM Date: Wed, 29 May 2024 18:29:57 -0700 Subject: [PATCH 1/2] allow blob_storage_url_v0 to be put for video file and optional toggle --- .../video-file-modal/video-file-modal.component.ts | 8 ++++++-- .../video-file-modal/video-file-modal.html | 11 ++++++++--- src/app/entity/video-file.ts | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts index e723b62..d12bf10 100644 --- a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts +++ b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts @@ -38,6 +38,8 @@ export class VideoFileModal implements OnInit, OnDestroy { DOWNLOADED: VideoFile.STATUS_DOWNLOADED }; + enable_blob_storage_options = false; + constructor(private _dialogRef: UIDialogRef, private _adminService: AdminService, private _fb: FormBuilder, @@ -130,7 +132,8 @@ export class VideoFileModal implements OnInit, OnDestroy { resolution_w: null, resolution_h: null, duration: null, - label: null + label: null, + blob_storage_url_v0: '', }); this.videoFileList.unshift(videoFileFormGroup); } @@ -158,7 +161,8 @@ export class VideoFileModal implements OnInit, OnDestroy { resolution_w: videoFile.resolution_w, resolution_h: videoFile.resolution_h, duration: videoFile.duration, - label: videoFile.label + label: videoFile.label, + blob_storage_url_v0: videoFile.blob_storage_url_v0, })); } diff --git a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html index c9ef3ee..38873e3 100644 --- a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html +++ b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html @@ -29,21 +29,25 @@

- +
- +
- +
+
+ + +
@@ -94,6 +98,7 @@

\ No newline at end of file diff --git a/src/app/entity/video-file.ts b/src/app/entity/video-file.ts index 74629e4..ba133eb 100644 --- a/src/app/entity/video-file.ts +++ b/src/app/entity/video-file.ts @@ -19,7 +19,7 @@ export class VideoFile { kf_frame_width?: number; kf_frame_height?: number; kf_image_path_list?: string; - + blob_storage_url_v0?: string; static STATUS_DOWNLOAD_PENDING = 1; static STATUS_DOWNLOADING = 2; From 7dfa4e0e862890e4b46a3f7096180b8c65ab2071 Mon Sep 17 00:00:00 2001 From: KTachibanaM Date: Thu, 30 May 2024 14:10:43 -0700 Subject: [PATCH 2/2] enableBlobStorageOptions --- .../video-file-modal/video-file-modal.component.ts | 2 +- .../video-file-modal/video-file-modal.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts index d12bf10..72e6b41 100644 --- a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts +++ b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.component.ts @@ -38,7 +38,7 @@ export class VideoFileModal implements OnInit, OnDestroy { DOWNLOADED: VideoFile.STATUS_DOWNLOADED }; - enable_blob_storage_options = false; + enableBlobStorageOptions = false; constructor(private _dialogRef: UIDialogRef, private _adminService: AdminService, diff --git a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html index 38873e3..804ce0c 100644 --- a/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html +++ b/src/app/admin/bangumi-detail/video-file-modal/video-file-modal.html @@ -29,22 +29,22 @@

- +
- +
- +
-
+
@@ -98,7 +98,7 @@

\ No newline at end of file