Chrunos commited on
Commit
6c6037a
·
verified ·
1 Parent(s): 7b39c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -188,8 +188,11 @@ async def download_high_quality_video(request: Request):
188
  )
189
 
190
  data = await request.json()
 
191
  video_url = data.get('url')
192
- quality = data.get('quality', '1080') # Default to 1080p if not specified
 
 
193
 
194
  # Check if the requested quality is above 1080p
195
  if int(quality) > 1080:
 
188
  )
189
 
190
  data = await request.json()
191
+ restricted_domain = "chrunos.com"
192
  video_url = data.get('url')
193
+ if video_url and restricted_domain in video_url:
194
+ return jsonify({"error": f"What is wrong with you? {restricted_domain} is not allowed.", "url": "https://t.me/chrunoss"})
195
+ quality = data.get('quality', '720') # Default to 1080p if not specified
196
 
197
  # Check if the requested quality is above 1080p
198
  if int(quality) > 1080: