Reduce loop time from 10 to 5

This commit is contained in:
Wizzard 2024-02-09 15:22:45 -05:00
parent 0a52caa4da
commit c9fdf31745
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def get_latest_video_url(channel_id):
latest_entry = feed.entries[0] if feed.entries else None latest_entry = feed.entries[0] if feed.entries else None
return latest_entry.link, latest_entry.yt_videoid if latest_entry else (None, None) return latest_entry.link, latest_entry.yt_videoid if latest_entry else (None, None)
@tasks.loop(minutes=10) @tasks.loop(minutes=5)
async def check_new_videos(): async def check_new_videos():
downloaded_videos = get_downloaded_videos() downloaded_videos = get_downloaded_videos()
for channel_id in YOUTUBE_CHANNEL_IDS: for channel_id in YOUTUBE_CHANNEL_IDS: