[youtube] match /shorts/ urls

This commit is contained in:
Laura Liberda 2021-01-23 15:42:50 +01:00
parent 570cf794a9
commit 1285da6e17

View file

@ -327,6 +327,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
))
|(?:
youtu\.be| # just youtu.be/xxxx
youtube\.com/shorts| # or youtube.com/shorts/xxx
vid\.plus| # or vid.plus/xxxx
zwearz\.com/watch| # or zwearz.com/watch/xxxx
)/
@ -904,6 +905,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'skip_download': True,
},
},
{
'url': 'https://youtube.com/shorts/7awd-y_DTQY',
'only_matching': True,
},
]
_VALID_SIG_VALUE_RE = r'^AO[a-zA-Z0-9_-]+=*$'