Beginings of api rework with channel inclusion
This commit is contained in:
@ -99,7 +99,12 @@ namespace YTManager.Tasks {
|
||||
var Videos = await Get_YTVideos(channel.YoutubeID);
|
||||
|
||||
// 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 what channel all the videos came from.
|
||||
foreach (var v in newvids)
|
||||
v.channel = channel;
|
||||
|
||||
// Say the channel has been refreshed.
|
||||
channel.Refreshed = DateTime.Now;
|
||||
|
Reference in New Issue
Block a user