Merge branch 'master' of http://10.200.0.3/GIT/videosite
[videosite.git] / videosite / YouTubeGrabber.pm
index 86b21bd..a7157f5 100644 (file)
@@ -61,10 +61,11 @@ sub _parse {
     my $videourl;
     my $quality = $self->_getval('QUALITY');
     my %preflist = (
-        'hd' => [37, 22, 35, 18, 34, 6, 5],
-        'h264' => [18, 34, 37, 22, 35, 6, 5],
-        'high' => [34, 35, 18, 37, 22, 6, 5],
-        'normal' => [6, 5, 34, 35, 18, 22, 37]);
+        'insane' => [38, 37, 22, 35, 18, 34, 6, 5],
+        'hd' => [37, 22, 35, 18, 34, 6, 5, 38],
+        'h264' => [18, 34, 37, 22, 35, 6, 5, 38],
+        'high' => [34, 35, 18, 37, 22, 6, 5, 38],
+        'normal' => [6, 5, 34, 35, 18, 22, 37, 38]);
     my $preflist;
     my $jsp;
 
@@ -191,6 +192,8 @@ sub _parse {
                         $self->debug('Found flv,h264: %s', $urls{$_});
                     } elsif ($_ == 22) {
                         $self->debug('Found mp4,h264,720p: %s', $urls{$_});
+                    } elsif ($_ == 38) {
+                        $self->debug('Found mp4,h264,4k: %s', $urls{$_});
                     } elsif ($_ == 37) {
                         $self->debug('Found mp4,h264,1080p: %s', $urls{$_});
                     } elsif ($_ == 18) {