Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ralf
youtube-dl
Commits
67171ed7
Unverified
Commit
67171ed7
authored
Sep 06, 2020
by
Sergey M․
Browse files
[youtube:user] Extend _VALID_URL (closes #26443)
parent
1d9bf655
Changes
1
Hide whitespace changes
Inline
Side-by-side
youtube_dl/extractor/youtube.py
View file @
67171ed7
...
...
@@ -3008,7 +3008,7 @@ class YoutubeChannelIE(YoutubePlaylistBaseInfoExtractor):
class
YoutubeUserIE
(
YoutubeChannelIE
):
IE_DESC
=
'YouTube.com user videos (URL or "ytuser" keyword)'
_VALID_URL
=
r
'(?:(?:https?://(?:\w+\.)?youtube\.com/(?:(?P<user>user|c)/)?(?!(?:attribution_link|watch|results|shared)(?:$|[^a-z_A-Z0-9-])))|ytuser:)(?!feed/)(?P<id>[A-Za-z0-9_-]+)'
_VALID_URL
=
r
'(?:(?:https?://(?:\w+\.)?youtube\.com/(?:(?P<user>user|c)/)?(?!(?:attribution_link|watch|results|shared)(?:$|[^a-z_A-Z0-9
%
-])))|ytuser:)(?!feed/)(?P<id>[A-Za-z0-9_
%
-]+)'
_TEMPLATE_URL
=
'https://www.youtube.com/%s/%s/videos'
IE_NAME
=
'youtube:user'
...
...
@@ -3038,6 +3038,9 @@ class YoutubeUserIE(YoutubeChannelIE):
},
{
'url'
:
'https://www.youtube.com/c/gametrailers'
,
'only_matching'
:
True
,
},
{
'url'
:
'https://www.youtube.com/c/Pawe%C5%82Zadro%C5%BCniak'
,
'only_matching'
:
True
,
},
{
'url'
:
'https://www.youtube.com/gametrailers'
,
'only_matching'
:
True
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment