Skip to content

Commit 169762d

Browse files
committed
Changed *RESOLUTION* to return the resolution heigh without p at the end. (fixes #37)
1 parent bc6a4b5 commit 169762d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lib/WWW/PipeViewer/Utils.pm

+5-10
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,11 @@ sub format_text {
384384
(
385385
defined($streaming)
386386
? (
387-
RESOLUTION => sub {
388-
$streaming->{resolution} =~ /^\d+\z/
389-
? $streaming->{resolution} . 'p'
390-
: $streaming->{resolution};
391-
},
392-
393-
ITAG => sub { $streaming->{streaming}{itag} },
394-
SUB => sub { $streaming->{srt_file} },
395-
VIDEO => sub { $streaming->{streaming}{url} },
396-
FORMAT => sub { $self->extension($streaming->{streaming}{type}) },
387+
RESOLUTION => sub { $streaming->{resolution} },
388+
ITAG => sub { $streaming->{streaming}{itag} },
389+
SUB => sub { $streaming->{srt_file} },
390+
VIDEO => sub { $streaming->{streaming}{url} },
391+
FORMAT => sub { $self->extension($streaming->{streaming}{type}) },
397392

398393
AUDIO => sub {
399394
ref($streaming->{streaming}{__AUDIO__}) eq 'HASH'

0 commit comments

Comments
 (0)