From 01bc50f9f26d350f1fee60f0d8c6389bbce22949 Mon Sep 17 00:00:00 2001 From: hak8or Date: Tue, 20 Feb 2018 18:00:05 -0500 Subject: [PATCH] Update the freshed state --- YTManager/Tasks/FetchVideos.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/YTManager/Tasks/FetchVideos.cs b/YTManager/Tasks/FetchVideos.cs index 50b493c..b22003a 100644 --- a/YTManager/Tasks/FetchVideos.cs +++ b/YTManager/Tasks/FetchVideos.cs @@ -101,6 +101,9 @@ namespace YTManager.Tasks { // 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)); + // Say the channel has been refreshed. + channel.Refreshed = DateTime.Now; + // Add all the videos to the databse. await db.Videos.AddRangeAsync(newvids);