解决一些问题

croire 4 years ago
parent 1b0bacbd33
commit a023935c7c

@ -7,6 +7,6 @@
public VideoSettings Video { get; set; } = new VideoSettings();
public DanmakuSettings Danmaku { get; set; } = new DanmakuSettings();
public AboutSettings About { get; set; } = new AboutSettings();
public UserInfoSettings UserInfo { get; set; }
public UserInfoSettings UserInfo { get; set; } = new UserInfoSettings();
}
}

@ -207,6 +207,8 @@ namespace DownKyi.Services.Download
// 添加到下载
foreach (VideoSection section in videoSections)
{
if (section.VideoPages == null) { continue; }
foreach (VideoPage page in section.VideoPages)
{
// 只下载选中项,跳过未选中项
@ -338,6 +340,9 @@ namespace DownKyi.Services.Download
break;
}
// 添加到下载列表
App.PropertyChangeAsync(new Action(() =>
{
// 如果不存在,直接添加到下载列表
DownloadBase downloadBase = new DownloadBase
{
@ -378,9 +383,6 @@ namespace DownKyi.Services.Download
PlayUrl = page.PlayUrl,
};
// 添加到下载列表
App.PropertyChangeAsync(new Action(() =>
{
App.DownloadingList.Add(downloadingItem);
Thread.Sleep(10);
}));

@ -276,7 +276,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -329,7 +329,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -358,7 +358,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -272,7 +272,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -258,7 +258,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -279,7 +279,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

@ -313,7 +313,7 @@ namespace DownKyi.ViewModels
}
// 通知用户添加到下载列表的结果
if (i == 0)
if (i <= 0)
{
eventAggregator.GetEvent<MessageEvent>().Publish(DictionaryResource.GetString("TipAddDownloadingZero"));
}

Loading…
Cancel
Save