诸多优化

This commit is contained in:
jianzhichu
2026-02-11 20:44:31 +08:00
parent 8b98abc94d
commit 3439a7ad38
8 changed files with 96 additions and 19 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ namespace dy.net.job
var cookies = await GetSyncCookies();
if (cookies == null || !cookies.Any())
{
Log.Debug($"[{VideoType.GetDesc()}]-Cookie无效或已关闭同步...");
Log.Debug($"[{VideoType.GetDesc()}]-Cookie无效或同步开关未开启或对应类型的存储路径未设置,请检查...");
return;
}
Log.Debug($"[{VideoType.GetDesc()}]共发现{cookies.Count}个有效Cookie,同步开始...");
+4 -4
View File
@@ -21,10 +21,10 @@ namespace dy.net.job
return await douyinHttpClientService.SyncMixViedosByMixId(cursor, count, cookie.Cookies, cate.XId);
}
//protected override bool ShouldContinueSync(DouyinCookie cookie, DouyinVideoInfoResponse data, DouyinFollowed followed=null)
//{
// return data != null && data.HasMore == 1;
//}
protected override Task<List<DouyinCookie>> GetSyncCookies()
{
return douyinCookieService.GetOpendCookiesAsync(x => !string.IsNullOrWhiteSpace(x.MixPath));
}
protected override string CreateSaveFolder(DouyinCookie cookie, Aweme item, AppConfig config, DouyinFollowed followed, DouyinCollectCate cate)
{
if (cate != null)
+4 -5
View File
@@ -20,11 +20,10 @@ namespace dy.net.job
return await douyinHttpClientService.SyncSeriesViedosByMSeriesId(cursor, count, cookie.Cookies, cate.XId);
}
//protected override bool ShouldContinueSync(DouyinCookie cookie, DouyinVideoInfoResponse data, DouyinFollowed followed=null)
//{
// return data != null && data.HasMore == 1;
//}
protected override Task<List<DouyinCookie>> GetSyncCookies()
{
return douyinCookieService.GetOpendCookiesAsync(x => !string.IsNullOrWhiteSpace(x.SeriesPath));
}
protected override string CreateSaveFolder(DouyinCookie cookie, Aweme item, AppConfig config, DouyinFollowed followed, DouyinCollectCate cate)
{
if (cate != null)