Chrunos commited on
Commit
b28d0d4
·
verified ·
1 Parent(s): 939d0f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -205,7 +205,7 @@ api_rotator = ApiRotator([
205
  "http://2.56.214.74:9000",
206
  "https://dwnld.nichind.dev",
207
  "http://109.107.189.229:9000",
208
- "https://dl01.yt-dl.click",
209
  "https://cobalt-api.ayo.tf"
210
  ])
211
 
@@ -345,9 +345,15 @@ async def download_high_quality_video(request: Request):
345
 
346
  TRACT_API = os.getenv("EXTRACT_API")
347
  ALT_API = os.getenv("ALT_API")
 
 
 
 
 
 
348
 
349
  def extract_video_info(video_url: str) -> str:
350
- if "pornhub.com" in video_url or "xhamster.com" in video_url or "eporner.com" in video_url:
351
  EXTRACT_API = TRACT_API
352
  else:
353
  EXTRACT_API = ALT_API
 
205
  "http://2.56.214.74:9000",
206
  "https://dwnld.nichind.dev",
207
  "http://109.107.189.229:9000",
208
+ "https://chrunos-load.hf.space",
209
  "https://cobalt-api.ayo.tf"
210
  ])
211
 
 
345
 
346
  TRACT_API = os.getenv("EXTRACT_API")
347
  ALT_API = os.getenv("ALT_API")
348
+ target_domains = [
349
+ "pornhub.com",
350
+ "hmamster.com",
351
+ "eporner.com",
352
+ "youporn.com"
353
+ ]
354
 
355
  def extract_video_info(video_url: str) -> str:
356
+ if any(domain in video_url for domain in target_domains):
357
  EXTRACT_API = TRACT_API
358
  else:
359
  EXTRACT_API = ALT_API