- if ($_ == 35) {
- $self->debug('Found flv,h264,large: %s', $urls{$_});
- } elsif ($_ == 34) {
- $self->debug('Found flv,h264: %s', $urls{$_});
- } elsif ($_ == 22) {
- $self->debug('Found mp4,h264,720p: %s', $urls{$_});
- } elsif ($_ == 38) {
- $self->debug('Found mp4,h264,4k: %s', $urls{$_});
- } elsif ($_ == 37) {
- $self->debug('Found mp4,h264,1080p: %s', $urls{$_});
- } elsif ($_ == 18) {
- $self->debug('Found mp4,h264: %s', $urls{$_});
- } elsif ($_ == 5) {
- $self->debug('Found flv,flv: %s', $urls{$_});
+ if (exists($videoformats{$_})) {
+ $self->debug('Found URL for format %s (%s): %s', $_, $videoformats{$_}, $urls{$_});