From f6e14111ea80fe055fb313abe3aae6fe1153f64b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 24 Jun 2023 12:05:01 -0700 Subject: [PATCH] Add youtube_formats.py full of constants. --- youtube_formats.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 youtube_formats.py diff --git a/youtube_formats.py b/youtube_formats.py new file mode 100644 index 0000000..9b4d14c --- /dev/null +++ b/youtube_formats.py @@ -0,0 +1,52 @@ +# These constants can be used to construct youtube-dl commands while keeping +# your source code legible. +AUDIO_M4A_128k = '140' +AUDIO_M4A_195k = '256' +AUDIO_M4A_386k = '258' +AUDIO_OPUS_160k = '251' +AUDIO_OPUS_50k = '249' +AUDIO_OPUS_70k = '250' +COMBINED_AVC_M4A_360p30_96k = '18' +COMBINED_AVC_M4A_720p30_128k = '22' +VIDEO_AV1_1080p60 = '399' +VIDEO_AV1_1440p60 = '400' +VIDEO_AV1_144p30 = '394' +VIDEO_AV1_2160p60 = '401' +VIDEO_AV1_240p30 = '395' +VIDEO_AV1_360p30 = '396' +VIDEO_AV1_4320p60 = '571' +VIDEO_AV1_480p30 = '397' +VIDEO_AV1_720p60 = '398' +VIDEO_AVC_1080p30 = '137' +VIDEO_AVC_1080p60 = '299' +VIDEO_AVC_1440p30 = '264' +VIDEO_AVC_1440p60 = '304' +VIDEO_AVC_144p30 = '160' +VIDEO_AVC_2160p30 = '266' +VIDEO_AVC_2160p60 = '305' +VIDEO_AVC_240p30 = '133' +VIDEO_AVC_360p30 = '134' +VIDEO_AVC_480p30 = '135' +VIDEO_AVC_720p30 = '136' +VIDEO_AVC_720p60 = '298' +VIDEO_VP9_1080p30 = '248' +VIDEO_VP9_1080p60 = '303' +VIDEO_VP9_1080p60_HDR = '335' +VIDEO_VP9_1440p30 = '271' +VIDEO_VP9_1440p60 = '308' +VIDEO_VP9_1440p60_HDR = '336' +VIDEO_VP9_144p30 = '278' +VIDEO_VP9_144p60_HDR = '330' +VIDEO_VP9_2160p30 = '313' +VIDEO_VP9_2160p60 = '315' +VIDEO_VP9_2160p60_HDR = '337' +VIDEO_VP9_240p30 = '242' +VIDEO_VP9_240p60_HDR = '331' +VIDEO_VP9_360p30 = '243' +VIDEO_VP9_360p60_HDR = '332' +VIDEO_VP9_4320p30 = '272' +VIDEO_VP9_480p30 = '244' +VIDEO_VP9_480p60_HDR = '333' +VIDEO_VP9_720p30 = '247' +VIDEO_VP9_720p60 = '302' +VIDEO_VP9_720p60_HDR = '334'