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
#
# 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;
# 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]) {
# - 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'})) {