From adf4fb089b7149a77f6ef268228f3378b0ae57fe Mon Sep 17 00:00:00 2001 From: ciccioxm3 Date: Thu, 26 Jun 2025 11:38:36 +0200 Subject: [PATCH] Update mixdrop.py --- StreamingCommunity/Api/Player/mixdrop.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/StreamingCommunity/Api/Player/mixdrop.py b/StreamingCommunity/Api/Player/mixdrop.py index 0086aa3..27a88a4 100644 --- a/StreamingCommunity/Api/Player/mixdrop.py +++ b/StreamingCommunity/Api/Player/mixdrop.py @@ -45,7 +45,7 @@ class VideoSource: def get_redirect_url(self) -> str: """Extract the stayonline redirect URL from the initial page.""" try: - response = httpx.get(self.url, headers=self.headers, follow_redirects=True, timeout=MAX_TIMEOUT) + response = httpx.get(self.url, headers=self.headers, follow_redirects=True, timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY) response.raise_for_status() soup = BeautifulSoup(response.text, "html.parser") @@ -68,7 +68,7 @@ class VideoSource: raise ValueError("Redirect URL not set. Call get_redirect_url first.") try: - response = httpx.get(self.redirect_url, headers=self.headers, follow_redirects=True, timeout=MAX_TIMEOUT) + response = httpx.get(self.redirect_url, headers=self.headers, follow_redirects=True, timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY) response.raise_for_status() soup = BeautifulSoup(response.text, "html.parser") @@ -89,7 +89,7 @@ class VideoSource: self.headers['referer'] = f'{self.STAYONLINE_BASE_URL}/l/{link_id}/' data = {'id': link_id, 'ref': ''} - response = httpx.post(f'{self.STAYONLINE_BASE_URL}/ajax/linkView.php', headers=self.headers, data=data, timeout=MAX_TIMEOUT) + response = httpx.post(f'{self.STAYONLINE_BASE_URL}/ajax/linkView.php', headers=self.headers, data=data, timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY) response.raise_for_status() return response.json()['data']['value'] @@ -128,7 +128,8 @@ class VideoSource: response = httpx.get( f'{self.MIXDROP_BASE_URL}/e/{video_id}', headers=self._get_mixdrop_headers(), - timeout=MAX_TIMEOUT + timeout=MAX_TIMEOUT, + verify=REQUEST_VERIFY ) response.raise_for_status() soup = BeautifulSoup(response.text, "html.parser")