fix: support separate yt-dlp video and audio streams

This commit is contained in:
dark_zoul committed 2026-10-19 23:26:44 +03:00
1 parent 389bd1b348
commit 9a5deeefed
2 files changed
+7 -7

No files matched your search

+2
View File
@@ -6,10 +6,12 @@ from app.core.download.downloader import Downloader
def test_build_format_defaults_to_best_mp4():
fmt = Downloader.build_format(None)
assert "height<=1080" in fmt
assert "bestvideo[ext=mp4][height<=1080]+bestaudio" in fmt
assert fmt.endswith("/best[ext=mp4]")
def test_build_format_applies_height_cap():
fmt = Downloader.build_format("720p")
assert "bestvideo[ext=mp4]" in fmt
assert "height<=720" in fmt