From: Ralf Ertzinger Date: Wed, 26 Nov 2014 20:00:01 +0000 (+0100) Subject: Youtube: Whitespace fixes X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=007970e7a24b00266cfd5e12325346fd908959cd Youtube: Whitespace fixes --- diff --git a/videosite/YouTubeGrabber.pm b/videosite/YouTubeGrabber.pm index 503ec51..b67ea53 100644 --- a/videosite/YouTubeGrabber.pm +++ b/videosite/YouTubeGrabber.pm @@ -44,7 +44,7 @@ my %videoformats = ( 36 => '3GP/MPEG4-Visual/240p', 37 => 'MP4/H264/AAC/1080p', # High 38 => 'MP4/H264/AAC/3072p', # High - 43 => 'WebM/VP8/Vorbis/360p', + 43 => 'WebM/VP8/Vorbis/360p', 44 => 'WebM/VP8/Vorbis/480p', 45 => 'WebM/VP8/Vorbis/720p', 46 => 'WebM/VP8/Vorbis/1080p/3D', # effective 540p @@ -134,7 +134,7 @@ sub _parse { # # Returns hashref on success # Returns undef on retryable error (try to scrape the website) -# Returns 0 on non-retryable error +# Returns 0 on non-retryable error # sub _parse_by_video_info { my $self = shift; @@ -292,7 +292,7 @@ sub _parse_by_scrape { # Convert HTML entities in the title. This is a bit convoluted. $metadata->{'TITLE'} = decode_entities( decode("utf8", $metadata->{'TITLE'})); - + $self->debug('Title found: %s', $metadata->{'TITLE'}); } } elsif ('script' eq $tag->[0]) { @@ -513,13 +513,13 @@ sub _decode_url_encoded_fmt_stream_map { # - URL-decode each key and value _again_ # # @data will be an array of hash references - + @data = map { { map { $self->decode_hexurl($_) } split /[&=]/ } } split /,/, $data; $self->debug("_decode_url_encoded_fmt_stream_map() decoded %s", Dumper(\@data)); # From each array entry, pick the itag and the url values and return that # as a hash reference - + foreach (@data) { if (exists($_->{'sig'})) {