LoremPizza commited on
Commit
97e509e
·
verified ·
1 Parent(s): 409e836

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -2
test.py CHANGED
@@ -12,7 +12,7 @@ m3u8_content = None
12
 
13
  def fetch_m3u8(url):
14
  """Fetch the M3U8 file from the URL and store it in memory."""
15
- response = requests.get(url,headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
16
  response.raise_for_status() # Raise an error for bad responses
17
  return response.text
18
 
@@ -70,7 +70,7 @@ async def clony_m3u8(segment: str, request: Request):
70
 
71
  @app.get('/storage/enc.key')
72
  async def get_key():
73
- response = requests.get('https://vixcloud.co/storage/enc.key', headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
74
 
75
  response_headers = {
76
  'date': response.headers['date'],
 
12
 
13
  def fetch_m3u8(url):
14
  """Fetch the M3U8 file from the URL and store it in memory."""
15
+ response = requests.get("http://elmythus.serv00.net:2020/" + url,headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
16
  response.raise_for_status() # Raise an error for bad responses
17
  return response.text
18
 
 
70
 
71
  @app.get('/storage/enc.key')
72
  async def get_key():
73
+ response = requests.get("http://elmythus.serv00.net:2020/" + 'https://vixcloud.co/storage/enc.key', headers = {"User-Agent": User_Agent, "user-agent": User_Agent})
74
 
75
  response_headers = {
76
  'date': response.headers['date'],