Reduce quality of downloaded videos

This commit is contained in:
Maks Snegov 2024-02-06 20:33:58 -08:00
parent 3677cddcb3
commit 756d4c2afb

View File

@ -16,7 +16,7 @@ _playlists = {}
# output template: CHANNEL/DATE_TITLE_[ID].ext # output template: CHANNEL/DATE_TITLE_[ID].ext
DEFAULT_OUTPUT_TMPL = "%(channel)s/%(upload_date)s_%(title)s_[%(id)s].%(ext)s" DEFAULT_OUTPUT_TMPL = "%(channel)s/%(upload_date)s_%(title)s_[%(id)s].%(ext)s"
# download video 1080p or lower with audio # download video 1080p or lower with audio
DEFAULT_FORMAT = "bestvideo[height<=1080]+bestaudio/best[height<=1080]" DEFAULT_FORMAT = "bestvideo[height<=720]+bestaudio/best[height<=720]"
def _truncate_title(title: str, length: int = 30) -> str: def _truncate_title(title: str, length: int = 30) -> str: