From 503fb588e0aef1dec73473b4731ceb27c2152198 Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Wed, 25 Nov 2009 23:17:40 +0100 Subject: [PATCH 1/1] - Add video type 37 (1080p) --- videosite/YouTubeGrabber.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/videosite/YouTubeGrabber.pm b/videosite/YouTubeGrabber.pm index 97b4827..83cee59 100644 --- a/videosite/YouTubeGrabber.pm +++ b/videosite/YouTubeGrabber.pm @@ -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) { -- 1.8.3.1