Skip to content

Commit

Permalink
feat: 添加快手下载支持
Browse files Browse the repository at this point in the history
  • Loading branch information
K12f committed Sep 11, 2024
1 parent d33d003 commit ee31c0a
Show file tree
Hide file tree
Showing 11 changed files with 996 additions and 58 deletions.
3 changes: 2 additions & 1 deletion src/BlueCatKoKo.Ui/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public partial class App : Application

// Service containing
container.AddSingleton<INavigationService, NavigationService>();
container.AddSingleton<IDownloaderService, DouyinDownloaderService>();
container.AddTransient<DouYinShortVideoService>();
container.AddTransient<KuaiShouShortVideoService>();

// Main window with navigation
container.AddSingleton<MainWindowViewModel>();
Expand Down
10 changes: 10 additions & 0 deletions src/BlueCatKoKo.Ui/Constants/ShortVideoPlatformEnum.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace BlueCatKoKo.Ui.Constants
{
public enum ShortVideoPlatformEnum
{
// 抖音
DouYin,
// 快手
KuaiShou,
}
}
12 changes: 6 additions & 6 deletions src/BlueCatKoKo.Ui/Models/DouyinShareRouterData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace BlueCatKoKo.Ui.Models
/// <summary>
/// 抖音 分享文本中的视频数据
/// </summary>
public class DouyinShareRouterData
public class DouYinShareRouterData
{
[JsonProperty("loaderData")] public LoaderData LoaderData { get; set; }
}
Expand Down Expand Up @@ -258,17 +258,17 @@ public class RiskInfos

public class Statistics
{
[JsonProperty("comment_count")] public int CommentCount { get; set; }
[JsonProperty("comment_count")] public long CommentCount { get; set; }

[JsonProperty("share_count")] public int ShareCount { get; set; }
[JsonProperty("share_count")] public long ShareCount { get; set; }

[JsonProperty("aweme_id")] public string AwemeId { get; set; }

[JsonProperty("digg_count")] public int DiggCount { get; set; }
[JsonProperty("digg_count")] public long DiggCount { get; set; }

[JsonProperty("play_count")] public int PlayCount { get; set; }
[JsonProperty("play_count")] public long PlayCount { get; set; }

[JsonProperty("collect_count")] public int CollectCount { get; set; }
[JsonProperty("collect_count")] public long CollectCount { get; set; }
}

public class TextExtra
Expand Down
Loading

0 comments on commit ee31c0a

Please sign in to comment.