aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-07-15 15:38:44 +0300
committerJesús <heckyel@hyperbola.info>2020-07-27 21:23:12 -0500
commitb429f8af7436ea35177a96dc2b80e59774f0fbe4 (patch)
treebab3d2562746ec1d984055a37a9aaae97131e00c /lib/WWW
parentddc0b8872b38b739f2dd0b55bf280ca182df03c5 (diff)
downloadfair-viewer-b429f8af7436ea35177a96dc2b80e59774f0fbe4.tar.lz
fair-viewer-b429f8af7436ea35177a96dc2b80e59774f0fbe4.tar.xz
fair-viewer-b429f8af7436ea35177a96dc2b80e59774f0fbe4.zip
- Allow YouTube URLs to be passed to `--id`.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'lib/WWW')
-rw-r--r--lib/WWW/FairViewer/RegularExpressions.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/WWW/FairViewer/RegularExpressions.pm b/lib/WWW/FairViewer/RegularExpressions.pm
index 6b8ed5f..51e85cd 100644
--- a/lib/WWW/FairViewer/RegularExpressions.pm
+++ b/lib/WWW/FairViewer/RegularExpressions.pm
@@ -38,7 +38,7 @@ our $get_username_playlists_re = qr{$get_username_videos_re/playlists};
# Video ID
my $video_id_re = qr/[0-9A-Za-z_\-]{11}/;
our $valid_video_id_re = qr{^$video_id_re\z};
-our $get_video_id_re = qr{(?:%3F|\b)(?>v|embed|youtu[.]be)(?>[=/]|%3D)(?<video_id>$video_id_re)};
+our $get_video_id_re = qr{(?:%3F|\b)(?>v|embed|youtu(?:\\)?[.]be)(?>(?:\\)?[=/]|%3D)(?<video_id>$video_id_re)};
# Playlist ID
our $valid_playlist_id_re = qr{^$generic_name_re\z};