提交功能
This commit is contained in:
53
VideoDownload/Platforms/KuaiShou.cs
Normal file
53
VideoDownload/Platforms/KuaiShou.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System.ComponentModel;
|
||||
using Downloader;
|
||||
|
||||
namespace ACBuildService;
|
||||
|
||||
public class KuaiShou : DownloadPlatforms
|
||||
{
|
||||
private static readonly Dictionary<string, string> _defaultHeaders = new()
|
||||
{
|
||||
{
|
||||
"User-Agent",
|
||||
"Mozilla/5.0 (Linux; Android 8.0.0; SM-G955U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36"
|
||||
},
|
||||
{ "sec-fetch-site", "same-origin" },
|
||||
{ "sec-fetch-mode", "cors" },
|
||||
{ "sec-fetch-dest", "empty" },
|
||||
{ "sec-ch-ua-platform", "Windows" },
|
||||
{ "sec-ch-ua-mobile", "?0" },
|
||||
{ "sec-ch-ua", "\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Google Chrome\";v=\"126\"" },
|
||||
{ "referer", "https://www.douyin.com/?recommend=1" },
|
||||
{ "priority", "u=1, i" },
|
||||
{ "pragma", "no-cache" },
|
||||
{ "cache-control", "no-cache" },
|
||||
{ "accept-language", "zh-CN,zh;q=0.9,en;q=0.8" },
|
||||
{
|
||||
"accept",
|
||||
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
||||
},
|
||||
{ "dnt", "1" }
|
||||
};
|
||||
|
||||
public override Task<string> ExtractUrlAsync(string text)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Task<VideoModel> ParseShare(string DownloadUrlText)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Task<VideoModel> ExtractVideoDataAsync(string url)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Task<bool> DownloadAsync(string url, string savePath, string fileName,
|
||||
EventHandler<DownloadProgressChangedEventArgs> onProgressChanged,
|
||||
EventHandler<AsyncCompletedEventArgs> onProgressCompleted)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user