fix(downloader): update types

This commit is contained in:
JellyBrick
2024-07-14 22:03:03 +09:00
parent a9b9e74477
commit 2c29461e61

View File

@ -30,6 +30,7 @@ export interface YouTubeFormat {
}
// converted from https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2#file-youtube_format_code_itag_list-md
// and https://gist.github.com/MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa
export const YoutubeFormatList: YouTubeFormat[] = [
{
itag: 5,
@ -769,4 +770,141 @@ export const YoutubeFormatList: YouTubeFormat[] = [
range: '-',
vrOr3D: '',
},
{
itag: 571,
container: 'mp4',
content: 'video',
resolution: '3840p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 694,
container: 'mp4',
content: 'video',
resolution: '144p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 695,
container: 'mp4',
content: 'video',
resolution: '240p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 696,
container: 'mp4',
content: 'video',
resolution: '360p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 697,
container: 'mp4',
content: 'video',
resolution: '480p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 698,
container: 'mp4',
content: 'video',
resolution: '720p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 699,
container: 'mp4',
content: 'video',
resolution: '1080p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 700,
container: 'mp4',
content: 'video',
resolution: '1440p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 701,
container: 'mp4',
content: 'video',
resolution: '2160p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 702,
container: 'mp4',
content: 'video',
resolution: '3840p',
bitrate: '-',
range: '-',
vrOr3D: '',
},
// Audio formats
{
itag: 599,
container: 'mp4',
content: 'audio',
resolution: '-',
bitrate: '30k',
range: '-',
vrOr3D: '',
},
{
itag: 600,
container: 'webm',
content: 'audio',
resolution: '-',
bitrate: '35k',
range: '-',
vrOr3D: '',
},
{
itag: 774,
container: 'webm',
content: 'audio',
resolution: '-',
bitrate: '256k',
range: '-',
vrOr3D: '',
},
// Livestream formats
{
itag: 300,
container: 'ts',
content: 'audio/video',
resolution: '720p60',
bitrate: '-',
range: '-',
vrOr3D: '',
},
{
itag: 301,
container: 'ts',
content: 'audio/video',
resolution: '1080p60',
bitrate: '-',
range: '-',
vrOr3D: '',
},
];