mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Fix error proxy 1
This commit is contained in:
parent
500fb965f4
commit
86ecac7edd
@ -212,7 +212,6 @@ class M3U8_Segments:
|
||||
"""
|
||||
|
||||
# Generate new user agent
|
||||
proxy = self.get_proxy(index)
|
||||
headers_segments['user-agent'] = get_headers()
|
||||
|
||||
try:
|
||||
@ -223,6 +222,7 @@ class M3U8_Segments:
|
||||
if len(PROXY_LIST) > 0:
|
||||
|
||||
# Make request
|
||||
proxy = self.get_proxy(index)
|
||||
response = session.get(ts_url, headers=headers_segments, timeout=REQUEST_TIMEOUT, proxies=proxy)
|
||||
response.raise_for_status()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user