- Add video type 37 (1080p)
authorRalf Ertzinger <sun@ryoko-darknet.camperquake.de>
Wed, 25 Nov 2009 22:17:40 +0000 (23:17 +0100)
committerRalf Ertzinger <sun@ryoko-darknet.camperquake.de>
Wed, 25 Nov 2009 22:17:40 +0000 (23:17 +0100)
videosite/YouTubeGrabber.pm

index 97b4827..83cee59 100644 (file)
@@ -56,10 +56,10 @@ sub _parse {
     my $videourl;
     my $quality = $self->_getval('QUALITY');
     my %preflist = (
-        'hd' => [22, 35, 18, 34, 6, 5],
-        'h264' => [18, 34, 22, 35, 6, 5],
-        'high' => [34, 35, 18, 22, 6, 5],
-        'normal' => [6, 5, 34, 35, 18, 22]);
+        '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]);
     my $preflist;
     my $jsp;
 
@@ -160,7 +160,9 @@ sub _parse {
                     } elsif ($_ == 34) {
                         $self->debug('Found flv,h264: %s', $urls{$_});
                     } elsif ($_ == 22) {
-                        $self->debug('Found mp4,h264,large: %s', $urls{$_});
+                        $self->debug('Found mp4,h264,720p: %s', $urls{$_});
+                    } elsif ($_ == 37) {
+                        $self->debug('Found mp4,h264,1080p: %s', $urls{$_});
                     } elsif ($_ == 18) {
                         $self->debug('Found mp4,h264: %s', $urls{$_});
                     } elsif ($_ == 5) {