mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-27 10:01:52 +00:00
[youtube] only allow domain name to be upper-case (#1786)
This commit is contained in:
parent
4113e6ab56
commit
cb7dfeeac4
1 changed files with 2 additions and 2 deletions
|
@ -139,10 +139,10 @@ def _real_initialize(self):
|
|||
|
||||
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||
IE_DESC = u'YouTube.com'
|
||||
_VALID_URL = r"""(?xi)^
|
||||
_VALID_URL = r"""(?x)^
|
||||
(
|
||||
(?:https?://|//)? # http(s):// or protocol-independent URL (optional)
|
||||
(?:(?:(?:(?:\w+\.)?youtube(?:-nocookie)?\.com/|
|
||||
(?:(?:(?:(?:\w+\.)?[yY][oO][uU][tT][uU][bB][eE](?:-nocookie)?\.com/|
|
||||
tube\.majestyc\.net/|
|
||||
youtube\.googleapis\.com/) # the various hostnames, with wildcard subdomains
|
||||
(?:.*?\#/)? # handle anchor (#/) redirect urls
|
||||
|
|
Loading…
Reference in a new issue