- $self->debug("Pagetype: old (SWF_ARGS), fmt_url_map");
-
- } elsif (exists($r->{'t'}) and ($r->{'t'} ne '')) {
- my $thash = $r->{'t'};
-
- if (exists($r->{'fmt_map'}) && ($r->{'fmt_map'} ne '')) {
- my $fmt = $r->{'fmt_map'};
- my @fmt;
-
- $self->debug('Video has fmt_map');
- $fmt = $self->decode_hexurl($fmt);
- @fmt = split(/,/, $fmt);
- foreach (@fmt) {
- @_=split(/\//);
- $urls{$_[0]} = sprintf('http://www.youtube.com/get_video?video_id=%s&fmt=%d&t=%s',
- $metadata->{'ID'},
- $_[0],
- $thash);
- }
- $self->debug("Pagetype: 2009 (SWF_ARGS), t with fmt_map");
-
- } else {
- $urls{5} = sprintf('http://www.youtube.com/get_video?video_id=%s&t=%s',
- $metadata->{'ID'},
- $thash);
- $self->debug("Pagetype: 2009 (SWF_ARGS), t without fmt_map");