Chrunos commited on
Commit
171f368
·
verified ·
1 Parent(s): dfc3dd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -510,7 +510,7 @@ async def download_high_quality_video(request: Request):
510
  video_url = data.get('url')
511
  quality = data.get('quality', '720') # Default to 1080p if not specified
512
  logger.info(f'input url: {video_url}, {quality}')
513
- is_youtube_url = re.search(r'(youtube\.com|youtu\.be)', video_url) is not None
514
  if video_url and restricted_domain in video_url:
515
  return {"error": "What is wrong with you?", "url": "https://t.me/chrunoss"}
516
 
 
510
  video_url = data.get('url')
511
  quality = data.get('quality', '720') # Default to 1080p if not specified
512
  logger.info(f'input url: {video_url}, {quality}')
513
+ is_youtube_url = re.search(r'(youtube\.com|youtu\.be|instagram\.com)', video_url) is not None
514
  if video_url and restricted_domain in video_url:
515
  return {"error": "What is wrong with you?", "url": "https://t.me/chrunoss"}
516