Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified to accept playlist IDs of length(15), like 'RD02mmCnQDUSO4I';

  • Loading branch information...
commit 402f682d14ead3fa98c96bd92a271d7756a3dead 1 parent 3d6ca2a
@trizen authored
View
2  WWW-YoutubeViewer/bin/youtube-viewer
@@ -1106,7 +1106,7 @@ sub parse_arguments {
'prefer-webm|prefer_webm!' => \$opt{prefer_webm},
'noconfig|N' => \$opt{noconfig},
- 'playlists|p:s' => \$opt{search_playlists},
+ 'playlists|p|pl:s' => \$opt{search_playlists},
'course|course-id=s' => \$opt{course_id},
'play-playlists|pp=s' => \$opt{play_playlists},
'debug:1' => \$opt{debug},
View
2  WWW-YoutubeViewer/lib/WWW/YoutubeViewer/RegularExpressions.pm
@@ -32,7 +32,7 @@ our $digit_or_equal_re = qr{(?(?=[1-9])|=)};
our $non_digit_or_opt_re = qr{^(?!$range_num_re)(?>[0-9]{1,2}[^0-9]|[0-9]{3}|[^0-9$opt_begin_chars])};
# Generic name
-my $generic_name_re = qr{[a-zA-Z0-9_.\-]{16,34}};
+my $generic_name_re = qr{[a-zA-Z0-9_.\-]{15,34}};
our $valid_username_re = qr{^(?:\w+(?:[-.]++\w++)*|$generic_name_re)\z};
# Video ID
Please sign in to comment.
Something went wrong with that request. Please try again.