Archived
1
0

#124: Test commit

This commit is contained in:
Michael Gordeev
2018-12-12 21:48:03 +03:00
parent 1105460cae
commit 0e6f847e02
3 changed files with 18 additions and 4 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ namespace FoxTube.Background
if (settings.Values["lastCheck"] == null)
{
settings.Values.Add("lastCheck", DateTime.UtcNow.ToString());
settings.Values.Add("lastCheck", DateTime.Now.ToString());
def.Complete();
return;
}
@@ -48,7 +48,7 @@ namespace FoxTube.Background
catch { }
finally
{
settings.Values["lastCheck"] = DateTime.UtcNow.ToString();
settings.Values["lastCheck"] = DateTime.Now.ToString();
def.Complete();
}
}
@@ -61,7 +61,7 @@ namespace FoxTube.Background
foreach (var s in subscriptions)
{
SearchResource.ListRequest request = Service.Search.List("snippet");
request.PublishedAfter = lastCheck;
request.PublishedAfter = lastCheck.Subtract(TimeSpan.FromDays(1));
request.ChannelId = s.Key;
request.Type = "video";
request.MaxResults = 5;