关注列表 保存路径,同步关注列表的时候直接把保存路径设置好了=博主名字(这样可以避免你没设置路径,但是博主又改名字,导致同一个博主的视频,后面视频分散在多个文件夹),已经设置过路径的不会变

This commit is contained in:
jianzhichu
2026-02-01 21:58:11 +08:00
parent 77f227a6c5
commit 46bec7a0d4
11 changed files with 83 additions and 15 deletions
+30
View File
@@ -157,7 +157,37 @@ namespace dy.net.service
}
///// <summary>
///// 获取已经下载过视频的作者的保存路径
///// </summary>
///// <param name="uperId"></param>
///// <returns></returns>
//public async Task<string> GetDouyinUpSavePath(string uperId)
//{
// return await sqlSugarClient.Queryable<DouyinVideoUp>().Where(x => x.UperId == uperId).Select(x => x.SavePath).FirstAsync();
//}
///// <summary>
///// 保存下载过视频的作者的保存路径
///// </summary>
///// <param name="uperId"></param>
///// <param name="SavePath"></param>
///// <returns></returns>
//public async Task<bool> SaveDouyinUpSavePath(string uperId, string SavePath)
//{
// var upSavePath = await GetDouyinUpSavePath(uperId);
// if (string.IsNullOrWhiteSpace(upSavePath))
// {
// await sqlSugarClient.Insertable(new DouyinVideoUp
// {
// Id = IdGener.GetLong().ToString(),
// SavePath = SavePath,
// UperId = uperId
// }).ExecuteCommandAsync();
// }
// return true;
//}
#region