Update main.py
Browse files
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<={
|
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 |
|