Skip to content

Commit

Permalink
Only update thumbnail every 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 6, 2025
1 parent ab70498 commit eab2023
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task Consume(ConsumeContext<SynchroniseSubscriptionContract<Youtube
}
else
{
if (DateTime.UtcNow - subscription.LastSynchronised > TimeSpan.FromDays(1))
if (DateTime.UtcNow - subscription.LastSynchronised > TimeSpan.FromDays(7))
{
var channelRequest = youTubeService.Channels.List("snippet");
channelRequest.Id = subscription.ChannelId;
Expand Down

0 comments on commit eab2023

Please sign in to comment.