1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 07:07:15 +08:00

extractor/TwitchClips: Reformated VALID_URL regex to verbose

This commit is contained in:
Felix Stupp 2020-04-06 01:29:28 +02:00
parent 6a6e1a0cd8
commit 3ba6c5eae0
No known key found for this signature in database
GPG Key ID: 93E1BD26F6B02FB7

View File

@ -643,7 +643,14 @@ class TwitchStreamIE(TwitchBaseIE):
class TwitchClipsIE(TwitchBaseIE):
IE_NAME = 'twitch:clips'
_VALID_URL = r'https?://(?:clips\.twitch\.tv/(?:embed\?.*?\bclip=|(?:[^/]+/)*)|(?:www\.)?twitch\.tv/[^/]+/clip/)(?P<id>[^/?#&]+)'
_VALID_URL = r'''(?x)
https?://
(?:
clips\.twitch\.tv/(?:embed\?.*?\bclip=|(?:[^/]+/)*)|
(?:www\.)?twitch\.tv/[^/]+/clip/
)
(?P<id>[^/?#&]+)
'''
_TESTS = [{
'url': 'https://clips.twitch.tv/FaintLightGullWholeWheat',