Chrunos commited on
Commit
056546b
·
verified ·
1 Parent(s): 2a22fbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -505,13 +505,12 @@ async def download_high_quality_video(request: Request):
505
  data = await request.json()
506
  restricted_domain = "chrunos.com"
507
  video_url = data.get('url')
508
- logger.info(f'input url: {video_url}')
 
509
  is_youtube_url = re.search(r'(youtube\.com|youtu\.be)', video_url) is not None
510
  if video_url and restricted_domain in video_url:
511
  return {"error": "What is wrong with you?", "url": "https://t.me/chrunoss"}
512
-
513
- quality = data.get('quality', '720') # Default to 1080p if not specified
514
-
515
  # Check if the requested quality is above 1080p
516
  if int(quality) > 720:
517
  error_message = "Quality above 720p is for Premium Members Only. Please check the URL for more information."
 
505
  data = await request.json()
506
  restricted_domain = "chrunos.com"
507
  video_url = data.get('url')
508
+ quality = data.get('quality', '720') # Default to 1080p if not specified
509
+ logger.info(f'input url: {video_url}, {quality}')
510
  is_youtube_url = re.search(r'(youtube\.com|youtu\.be)', video_url) is not None
511
  if video_url and restricted_domain in video_url:
512
  return {"error": "What is wrong with you?", "url": "https://t.me/chrunoss"}
513
+
 
 
514
  # Check if the requested quality is above 1080p
515
  if int(quality) > 720:
516
  error_message = "Quality above 720p is for Premium Members Only. Please check the URL for more information."