diff --git a/internal/web/ui.go b/internal/web/ui.go index f3351c6..6158c87 100644 --- a/internal/web/ui.go +++ b/internal/web/ui.go @@ -3744,16 +3744,6 @@ func (u *UI) actionAssetVideoSourceSave(w http.ResponseWriter, r *http.Request) MountAngle: strings.TrimSpace(r.FormValue("mount_angle")), }, } - if err := u.preview.SaveVideoSourceAsset(asset, ""); err != nil { - data := u.assetPageData("video-sources") - data.Title = "资产管理" - data.Error = err.Error() - data.AssetVideoSource = &asset - data.AssetVideoSource.SourceTypeLabel = serviceVideoSourceTypeLabel(asset.SourceType) - data.AssetVideoSourceEditing = true - u.render(w, r, "assets", data) - return - } // Pass ID for update (0 = new) if idStr := strings.TrimSpace(r.FormValue("id")); idStr != "" { if id, err := strconv.Atoi(idStr); err == nil { diff --git a/safesightd-linux-arm64 b/safesightd-linux-arm64 index bf80178..262687a 100644 Binary files a/safesightd-linux-arm64 and b/safesightd-linux-arm64 differ