mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-07-19 00:20:00 +00:00
Update vixcloud.py
This commit is contained in:
parent
d519bf102f
commit
986f421efd
@ -58,7 +58,7 @@ class VideoSource:
|
||||
}
|
||||
|
||||
try:
|
||||
response = httpx.get(f"{self.url}/iframe/{self.media_id}", headers=self.headers, params=params, timeout=MAX_TIMEOUT, proxy=self.proxy)
|
||||
response = httpx.get(f"{self.url}/iframe/{self.media_id}", headers=self.headers, params=params, timeout=MAX_TIMEOUT, proxy=self.proxy, verify=REQUEST_VERIFY)
|
||||
response.raise_for_status()
|
||||
|
||||
# Parse response with BeautifulSoup to get iframe source
|
||||
@ -101,7 +101,7 @@ class VideoSource:
|
||||
"""
|
||||
try:
|
||||
if self.iframe_src is not None:
|
||||
response = httpx.get(self.iframe_src, headers=self.headers, timeout=MAX_TIMEOUT)
|
||||
response = httpx.get(self.iframe_src, headers=self.headers, timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY)
|
||||
response.raise_for_status()
|
||||
|
||||
# Parse response with BeautifulSoup to get content
|
||||
@ -179,7 +179,7 @@ class VideoSourceAnime(VideoSource):
|
||||
str: Parsed script content
|
||||
"""
|
||||
try:
|
||||
response = httpx.get(f"{self.url}/embed-url/{episode_id}", headers=self.headers, timeout=MAX_TIMEOUT)
|
||||
response = httpx.get(f"{self.url}/embed-url/{episode_id}", headers=self.headers, timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY)
|
||||
response.raise_for_status()
|
||||
|
||||
# Extract and clean embed URL
|
||||
@ -187,7 +187,7 @@ class VideoSourceAnime(VideoSource):
|
||||
self.iframe_src = embed_url
|
||||
|
||||
# Fetch video content using embed URL
|
||||
video_response = httpx.get(embed_url)
|
||||
video_response = httpx.get(embed_url, verify=REQUEST_VERIFY)
|
||||
video_response.raise_for_status()
|
||||
|
||||
# Parse response with BeautifulSoup to get content of the scriot
|
||||
|
Loading…
x
Reference in New Issue
Block a user