summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2020-09-06 11:31:28 +0700
committerSergey M․ <[email protected]>2020-09-06 11:31:28 +0700
commit67171ed7e940d9022e3388ddd029978bc426ea1f (patch)
treee5c21b897f86cd8ebc3856b9032c1962d87e7a56
parent1d9bf655e68c873dc1f04739640046c43a1443d5 (diff)
downloadyoutube-dl-67171ed7e940d9022e3388ddd029978bc426ea1f.tar.gz
youtube-dl-67171ed7e940d9022e3388ddd029978bc426ea1f.zip
[youtube:user] Extend _VALID_URL (closes #26443)
-rw-r--r--youtube_dl/extractor/youtube.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index b35bf03aa..6611caf06 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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'
@@ -3039,6 +3039,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,
}, {