Download videos to mp4 format

This commit is contained in:
Maks Snegov 2024-10-13 11:49:35 -07:00
parent 7d280e3c04
commit fd65bf91a5

View File

@ -17,7 +17,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<=720]+bestaudio/best[height<=720]" DEFAULT_FORMAT = "bestvideo[height<=720][ext=mp4]+bestaudio/best[height<=720]"
program_dir = os.path.dirname(os.path.realpath(__file__)) program_dir = os.path.dirname(os.path.realpath(__file__))