mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-07 08:15:12 +02:00
feat: make sure max_video_quality setting is working
This commit is contained in:
1 parent
4cd6255b0f
commit
1928f70928
9 files changed
+118
-18
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from src.app.core.download.downloader import Downloader
|
||||
|
||||
|
||||
def test_build_format_defaults_to_best_mp4():
|
||||
fmt = Downloader.build_format(None)
|
||||
assert "height<=" not in fmt
|
||||
assert "best[ext=mp4]" in fmt
|
||||
|
||||
|
||||
def test_build_format_applies_height_cap():
|
||||
fmt = Downloader.build_format("720p")
|
||||
assert "height<=720" in fmt
|
||||
|
||||
Reference in new issue
Block a user