跳过数据库中数据丢失的item

pull/409/head
leiurayer 3 years ago
parent b5c5776ac8
commit 505dab3310

@ -76,6 +76,7 @@ namespace DownKyi.Services.Download
Downloading = downloading Downloading = downloading
}; };
if (downloadingItem.DownloadBase == null) { continue; }
list.Add(downloadingItem); list.Add(downloadingItem);
} }
} }
@ -153,13 +154,14 @@ namespace DownKyi.Services.Download
{ {
if (item.Value is Downloaded downloaded) if (item.Value is Downloaded downloaded)
{ {
DownloadedItem downloadingItem = new DownloadedItem DownloadedItem downloadedItem = new DownloadedItem
{ {
DownloadBase = GetDownloadBase(item.Key), DownloadBase = GetDownloadBase(item.Key),
Downloaded = downloaded Downloaded = downloaded
}; };
list.Add(downloadingItem); if (downloadedItem.DownloadBase == null) { continue; }
list.Add(downloadedItem);
} }
} }

Loading…
Cancel
Save