Update the freshed state
This commit is contained in:
parent
1e42ac746f
commit
01bc50f9f2
@ -101,6 +101,9 @@ namespace YTManager.Tasks {
|
|||||||
// Get all the videos which haven't been put into this channels videos.
|
// Get all the videos which haven't been put into this channels videos.
|
||||||
var newvids = Videos.Where(nv => !channel.Videos.Any(cv => cv.YoutubeID == nv.YoutubeID));
|
var newvids = Videos.Where(nv => !channel.Videos.Any(cv => cv.YoutubeID == nv.YoutubeID));
|
||||||
|
|
||||||
|
// Say the channel has been refreshed.
|
||||||
|
channel.Refreshed = DateTime.Now;
|
||||||
|
|
||||||
// Add all the videos to the databse.
|
// Add all the videos to the databse.
|
||||||
await db.Videos.AddRangeAsync(newvids);
|
await db.Videos.AddRangeAsync(newvids);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user