youtube-video-download.user.js
// decodeFormat(format) - Decode an element of the fmt_list array
Decode an element of the fmt_list array
Decode an element of the fmt_list array
function decodeFormat(format)
 {
  format = format.split("/");
  var size = format[1].split("x");
  return {
   itag: format[0],
   width: Number(size[0]),
   height: Number(size[1]),
   flashMajor: Number(format[2]),
   flashMinor: Number(format[3]),
   flashPatch: Number(format[4]),
  };
 }
function decodeFormat ( format ) { format = format . split ( "/" ) ; var size = format [ 1 ] . split ( "x" ) ; return { itag : format [ 0 ] , width : Number ( size [ 0 ] ) , height : Number ( size [ 1 ] ) , flashMajor : Number ( format [ 2 ] ) , flashMinor : Number ( format [ 3 ] ) , flashPatch : Number ( format [ 4 ] ) , } ; }
decodeFormat(format) - Decode an element of the fmt_list array
decodeFormat ( format ) - Decode an element of the fmt_list array