diff --git a/MediaFeeder/MediaFeeder/Components/Dialogs/AddVideo.razor b/MediaFeeder/MediaFeeder/Components/Dialogs/AddVideo.razor new file mode 100644 index 0000000..11f4855 --- /dev/null +++ b/MediaFeeder/MediaFeeder/Components/Dialogs/AddVideo.razor @@ -0,0 +1,5 @@ +

AddVideo

+ +@code { + +} \ No newline at end of file diff --git a/MediaFeeder/MediaFeeder/Components/Dialogs/EditSubscription.razor b/MediaFeeder/MediaFeeder/Components/Dialogs/EditSubscription.razor new file mode 100644 index 0000000..4bd304b --- /dev/null +++ b/MediaFeeder/MediaFeeder/Components/Dialogs/EditSubscription.razor @@ -0,0 +1,5 @@ +

EditSubscription

+ +@code { + +} \ No newline at end of file diff --git a/MediaFeeder/MediaFeeder/Providers/RSS/RSSSubscriptionSynchroniseConsumer.cs b/MediaFeeder/MediaFeeder/Providers/RSS/RSSSubscriptionSynchroniseConsumer.cs index a1eb40f..dfabb19 100644 --- a/MediaFeeder/MediaFeeder/Providers/RSS/RSSSubscriptionSynchroniseConsumer.cs +++ b/MediaFeeder/MediaFeeder/Providers/RSS/RSSSubscriptionSynchroniseConsumer.cs @@ -22,7 +22,7 @@ public async Task Consume(ConsumeContext v.SubscriptionId == subscription.Id && v.New && DateTimeOffset.Now - v.PublishDate <= TimeSpan.FromDays(1)) + .Where(v => v.SubscriptionId == subscription.Id && v.New && DateTimeOffset.UtcNow - v.PublishDate <= TimeSpan.FromDays(1)) .ToListAsync(context.CancellationToken) ) video.New = false; @@ -60,7 +60,7 @@ private async Task SyncVideo(SyndicationItem item, int subscriptionId, Cancellat video.VideoId = item.ElementExtensions.ReadElementExtensions("identifier", "http://purl.org/dc/elements/1.1/").FirstOrDefault() ?? item.Id; video.Name = item.Title.Text; - video.New = DateTimeOffset.Now - item.PublishDate <= TimeSpan.FromDays(7); + video.New = DateTimeOffset.UtcNow - item.PublishDate <= TimeSpan.FromDays(7); video.PublishDate = item.PublishDate; //video.Thumb = ""; video.Description = item.Summary.Text; diff --git a/MediaFeeder/MediaFeeder/Providers/Youtube/YoutubeSubscriptionSynchroniseConsumer.cs b/MediaFeeder/MediaFeeder/Providers/Youtube/YoutubeSubscriptionSynchroniseConsumer.cs index f5b5814..f6f48ee 100644 --- a/MediaFeeder/MediaFeeder/Providers/Youtube/YoutubeSubscriptionSynchroniseConsumer.cs +++ b/MediaFeeder/MediaFeeder/Providers/Youtube/YoutubeSubscriptionSynchroniseConsumer.cs @@ -26,7 +26,7 @@ public async Task Consume(ConsumeContext v.SubscriptionId == subscription.Id && v.New && DateTimeOffset.Now - v.PublishDate <= TimeSpan.FromDays(1)) + .Where(v => v.SubscriptionId == subscription.Id && v.New && DateTimeOffset.UtcNow - v.PublishDate <= TimeSpan.FromDays(1)) .ToListAsync(context.CancellationToken) ) video.New = false;