aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-10-22 09:15:27 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-10-22 09:15:27 +0200
commitb8005afc20aac352aa50ca089f33aa279e6ae03b (patch)
tree2b7b7c5946a5965f9eb19a445621c1c4da6991b6 /youtube_dl
parent073522bc6c5cfdb379bb48976d76e0e5505ae2d1 (diff)
downloadyoutube-dl-b8005afc20aac352aa50ca089f33aa279e6ae03b.tar.xz
handle YT urls with #/ redirects (closes #484)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/InfoExtractors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 88973cce8..c35b68b8f 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -102,6 +102,7 @@ class YoutubeIE(InfoExtractor):
(?:https?://)? # http(s):// (optional)
(?:youtu\.be/|(?:\w+\.)?youtube(?:-nocookie)?\.com/|
tube\.majestyc\.net/) # the various hostnames, with wildcard subdomains
+ (?:.*?\#/)? # handle anchor (#/) redirect urls
(?!view_play_list|my_playlists|artist|playlist) # ignore playlist URLs
(?: # the various things that can precede the ID:
(?:(?:v|embed|e)/) # v/ or embed/ or e/