From b17913e21bbb976e626cf2a08504e2061682ee75 Mon Sep 17 00:00:00 2001 From: DARKZOUL5 Date: Sat, 16 May 2026 16:14:57 +0300 Subject: [PATCH] readme: update :) --- README.md | 3 ++- src/app/core/download/downloader.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eca18f8..e032a04 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,8 @@ Create/edit `config/yt-playlist-config.json`: `max_download_quality`: -- Limits yt-dlp download quality (e.g. `"1080p"`, `"720p"`). This only affects the downloaded video format selection. +- Limits yt-dlp download quality (e.g. `"1080p"`, `"720p"`, `"360p"`). This only affects the downloaded video format selection. +- If the requested max quality isn't available for a video, the best available quality is chosen. `download_mode`: diff --git a/src/app/core/download/downloader.py b/src/app/core/download/downloader.py index cc6d834..a8593a0 100644 --- a/src/app/core/download/downloader.py +++ b/src/app/core/download/downloader.py @@ -36,6 +36,7 @@ class Downloader: cap = parse_height_cap(max_download_quality) if cap is not None: + #if the requested cap isn't available, we still download the best mp4. return f"best[ext=mp4][acodec!=none][vcodec!=none][height<={cap}]/best[ext=mp4][height<={cap}]/best[ext=mp4]" return "best[ext=mp4][acodec!=none][vcodec!=none]/best[ext=mp4]"