Chrunos commited on
Commit
b868baa
·
verified ·
1 Parent(s): 9a34430

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -237,7 +237,7 @@ async def download_video_max_quality(request: Request, payload: MaxDownloadReque
237
  # For > 1080 max dimension, prioritize best available codec
238
  logger.info(f"Attempting best available codec for requested quality (max dimension): {max_dim}")
239
  format_selector = (
240
- f'bestvideo[height<={max_dim}]/bestvideo[width<={max_dim}]+bestaudio/'
241
  f'best[height<={max_dim}]/best[width<={max_dim}]+bestaudio/'
242
  )
243
 
 
237
  # For > 1080 max dimension, prioritize best available codec
238
  logger.info(f"Attempting best available codec for requested quality (max dimension): {max_dim}")
239
  format_selector = (
240
+ f'bestvideo[height<={long_edge}]/bestvideo[width<={long_edge}]+bestaudio/best'
241
  f'best[height<={max_dim}]/best[width<={max_dim}]+bestaudio/'
242
  )
243