mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
handle YT urls with #/ redirects (closes #484)
This commit is contained in:
parent
073522bc6c
commit
b8005afc20
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ class YoutubeIE(InfoExtractor):
|
||||||
(?:https?://)? # http(s):// (optional)
|
(?:https?://)? # http(s):// (optional)
|
||||||
(?:youtu\.be/|(?:\w+\.)?youtube(?:-nocookie)?\.com/|
|
(?:youtu\.be/|(?:\w+\.)?youtube(?:-nocookie)?\.com/|
|
||||||
tube\.majestyc\.net/) # the various hostnames, with wildcard subdomains
|
tube\.majestyc\.net/) # the various hostnames, with wildcard subdomains
|
||||||
|
(?:.*?\#/)? # handle anchor (#/) redirect urls
|
||||||
(?!view_play_list|my_playlists|artist|playlist) # ignore playlist URLs
|
(?!view_play_list|my_playlists|artist|playlist) # ignore playlist URLs
|
||||||
(?: # the various things that can precede the ID:
|
(?: # the various things that can precede the ID:
|
||||||
(?:(?:v|embed|e)/) # v/ or embed/ or e/
|
(?:(?:v|embed|e)/) # v/ or embed/ or e/
|
||||||
|
|
Loading…
Reference in a new issue