修了一个小bug.

This commit is contained in:
jianzhichu
2025-12-08 20:53:10 +08:00
parent 90a1115c2e
commit 1a9af56e05
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ namespace dy.net.job
#region 使UP主名称作为文件夹名称使
var authorName = string.IsNullOrWhiteSpace(item.Author?.Nickname) ? "UnknownAuthor" : DouyinFileNameHelper.SanitizeLinuxFileName(item.Author.Nickname,"",true);
var folder = Path.Combine(cookie.UpSavePath, authorName);
if (!string.IsNullOrWhiteSpace(followed.SavePath))
if (followed != null && !string.IsNullOrWhiteSpace(followed.SavePath))
{
folder = Path.Combine(cookie.UpSavePath, followed.SavePath);
}