Skip to content

Commit

Permalink
feat: 设置下载视频标题
Browse files Browse the repository at this point in the history
  • Loading branch information
K12f committed Nov 19, 2024
1 parent 4ddab27 commit a21e2d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/BlueCatKoKo.Ui/BlueCatKoKo.Ui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ApplicationIcon>applicationIcon.ico</ApplicationIcon>
<Platforms>AnyCPU;x64</Platforms>
<AssemblyName>BlueCatKoKo</AssemblyName>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<AssemblyVersion>1.4.0</AssemblyVersion>
<UseWPF>true</UseWPF>
<MvvmToolkitEnableINotifyPropertyChangingSupport>false</MvvmToolkitEnableINotifyPropertyChangingSupport>

Expand Down Expand Up @@ -58,7 +58,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5"/>
<PackageReference Include="RestSharp" Version="111.4.1"/>
<PackageReference Include="RestSharp" Version="112.1.0"/>
<PackageReference Include="Serilog" Version="4.0.1"/>
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0"/>
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0"/>
Expand Down
6 changes: 3 additions & 3 deletions src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<hc:Row Margin="0,0,0,0">
<hc:Col Span="20">
<TextBox Text="{Binding ViewModel.DownloadUrlText}"
hc:InfoElement.Placeholder="请粘贴抖音/快手 分享链接"
hc:InfoElement.Placeholder="请粘贴抖音 分享链接"
Style="{StaticResource TextBoxExtend}" />
</hc:Col>
<hc:Col Span="4">
Expand Down

0 comments on commit a21e2d6

Please sign in to comment.