diff --git a/surfsense_backend/app/tasks/background_tasks.py b/surfsense_backend/app/tasks/background_tasks.py index 1510fb6..1d278f7 100644 --- a/surfsense_backend/app/tasks/background_tasks.py +++ b/surfsense_backend/app/tasks/background_tasks.py @@ -356,8 +356,8 @@ async def add_youtube_video_document( } oembed_url = "https://www.youtube.com/oembed" - async with aiohttp.ClientSession() as session: - async with session.get(oembed_url, params=params) as response: + async with aiohttp.ClientSession() as http_session: + async with http_session.get(oembed_url, params=params) as response: video_data = await response.json() # Get video transcript