Skip to content

Commit 2c29461

Browse files
committed
fix(downloader): update types
1 parent a9b9e74 commit 2c29461

File tree

1 file changed

+138
-0
lines changed

1 file changed

+138
-0
lines changed

src/plugins/downloader/types.ts

+138
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface YouTubeFormat {
3030
}
3131

3232
// converted from https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2#file-youtube_format_code_itag_list-md
33+
// and https://gist.github.com/MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa
3334
export const YoutubeFormatList: YouTubeFormat[] = [
3435
{
3536
itag: 5,
@@ -769,4 +770,141 @@ export const YoutubeFormatList: YouTubeFormat[] = [
769770
range: '-',
770771
vrOr3D: '',
771772
},
773+
{
774+
itag: 571,
775+
container: 'mp4',
776+
content: 'video',
777+
resolution: '3840p',
778+
bitrate: '-',
779+
range: '-',
780+
vrOr3D: '',
781+
},
782+
{
783+
itag: 694,
784+
container: 'mp4',
785+
content: 'video',
786+
resolution: '144p',
787+
bitrate: '-',
788+
range: '-',
789+
vrOr3D: '',
790+
},
791+
{
792+
itag: 695,
793+
container: 'mp4',
794+
content: 'video',
795+
resolution: '240p',
796+
bitrate: '-',
797+
range: '-',
798+
vrOr3D: '',
799+
},
800+
{
801+
itag: 696,
802+
container: 'mp4',
803+
content: 'video',
804+
resolution: '360p',
805+
bitrate: '-',
806+
range: '-',
807+
vrOr3D: '',
808+
},
809+
{
810+
itag: 697,
811+
container: 'mp4',
812+
content: 'video',
813+
resolution: '480p',
814+
bitrate: '-',
815+
range: '-',
816+
vrOr3D: '',
817+
},
818+
{
819+
itag: 698,
820+
container: 'mp4',
821+
content: 'video',
822+
resolution: '720p',
823+
bitrate: '-',
824+
range: '-',
825+
vrOr3D: '',
826+
},
827+
{
828+
itag: 699,
829+
container: 'mp4',
830+
content: 'video',
831+
resolution: '1080p',
832+
bitrate: '-',
833+
range: '-',
834+
vrOr3D: '',
835+
},
836+
{
837+
itag: 700,
838+
container: 'mp4',
839+
content: 'video',
840+
resolution: '1440p',
841+
bitrate: '-',
842+
range: '-',
843+
vrOr3D: '',
844+
},
845+
{
846+
itag: 701,
847+
container: 'mp4',
848+
content: 'video',
849+
resolution: '2160p',
850+
bitrate: '-',
851+
range: '-',
852+
vrOr3D: '',
853+
},
854+
{
855+
itag: 702,
856+
container: 'mp4',
857+
content: 'video',
858+
resolution: '3840p',
859+
bitrate: '-',
860+
range: '-',
861+
vrOr3D: '',
862+
},
863+
// Audio formats
864+
{
865+
itag: 599,
866+
container: 'mp4',
867+
content: 'audio',
868+
resolution: '-',
869+
bitrate: '30k',
870+
range: '-',
871+
vrOr3D: '',
872+
},
873+
{
874+
itag: 600,
875+
container: 'webm',
876+
content: 'audio',
877+
resolution: '-',
878+
bitrate: '35k',
879+
range: '-',
880+
vrOr3D: '',
881+
},
882+
{
883+
itag: 774,
884+
container: 'webm',
885+
content: 'audio',
886+
resolution: '-',
887+
bitrate: '256k',
888+
range: '-',
889+
vrOr3D: '',
890+
},
891+
// Livestream formats
892+
{
893+
itag: 300,
894+
container: 'ts',
895+
content: 'audio/video',
896+
resolution: '720p60',
897+
bitrate: '-',
898+
range: '-',
899+
vrOr3D: '',
900+
},
901+
{
902+
itag: 301,
903+
container: 'ts',
904+
content: 'audio/video',
905+
resolution: '1080p60',
906+
bitrate: '-',
907+
range: '-',
908+
vrOr3D: '',
909+
},
772910
];

0 commit comments

Comments
 (0)