From 5d6ca83bc7066bbbfa315159537d84f0f48e75fb Mon Sep 17 00:00:00 2001 From: Nancy2468 Date: Thu, 27 Mar 2025 07:44:39 +0530 Subject: [PATCH] shahid.py --- yt_dlp/extractor/shahid.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/shahid.py b/yt_dlp/extractor/shahid.py index f0a3b6b7d7..cdddd5f02f 100644 --- a/yt_dlp/extractor/shahid.py +++ b/yt_dlp/extractor/shahid.py @@ -1,6 +1,7 @@ import json import math import re +import os from .aws import AWSIE from ..networking.exceptions import HTTPError @@ -16,8 +17,10 @@ from ..utils import ( class ShahidBaseIE(AWSIE): - _AWS_PROXY_HOST = 'api2.shahid.net' - _AWS_API_KEY = '2RRtuMHx95aNI1Kvtn2rChEuwsCogUd4samGPjLh' + + + 'access_key': os.getenv("AWS_ACCESS_KEY"), + 'secret_key': os.getenv("AWS_SECRET_KEY"), _VALID_URL_BASE = r'https?://shahid\.mbc\.net/[a-z]{2}/' def _handle_error(self, e):