From a21e2d6c460f5bf21529533115c332b501cab985 Mon Sep 17 00:00:00 2001 From: "k.12f" Date: Tue, 19 Nov 2024 12:34:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AE=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj | 4 ++-- src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs | 6 +++--- src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj b/src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj index 8f8c4f6..9b47a68 100644 --- a/src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj +++ b/src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj @@ -8,7 +8,7 @@ applicationIcon.ico AnyCPU;x64 BlueCatKoKo - 1.3.0.1 + 1.4.0 true false @@ -58,7 +58,7 @@ - + diff --git a/src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs b/src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs index 156ed7d..0cca062 100644 --- a/src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs +++ b/src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs @@ -181,13 +181,13 @@ private async Task DownloadAll() throw new InvalidDataException("无效的下载链接"); } - var filename = _appConfig.Value.DownloadPath + Data.VideoId + ".mp4"; + var filename = _appConfig.Value.DownloadPath + Data.Desc + ".mp4"; switch (Data.Platform) { case ShortVideoPlatformEnum.DouYin: await _douYinShortVideoService.DownloadAsync(Data.VideoUrl, _appConfig.Value.DownloadPath, - Data.VideoId + ".mp4", + Data.Desc + ".mp4", (sender, e) => { DownloadProcess = e.ProgressPercentage; @@ -199,7 +199,7 @@ await _douYinShortVideoService.DownloadAsync(Data.VideoUrl, _appConfig.Value.Dow break; case ShortVideoPlatformEnum.KuaiShou: await _kuaiShortVideoService.DownloadAsync(Data.VideoUrl, _appConfig.Value.DownloadPath, - Data.VideoId + ".mp4", + Data.Desc + ".mp4", (sender, e) => { DownloadProcess = e.ProgressPercentage; diff --git a/src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml b/src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml index 82641cb..22b672f 100644 --- a/src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml +++ b/src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml @@ -21,7 +21,7 @@