From 16867b4bed3b2c009037963410ecf9c806681164 Mon Sep 17 00:00:00 2001 From: ritikprajapat21 Date: Mon, 12 May 2025 09:36:20 +0530 Subject: [PATCH] Changes updated --- surfsense_backend/app/tasks/background_tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surfsense_backend/app/tasks/background_tasks.py b/surfsense_backend/app/tasks/background_tasks.py index 1510fb6f1..1d278f715 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