1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 08:26:50 +00:00

[nexx] Add support for arc.nexx.cloud URLs

This commit is contained in:
Sergey M․ 2018-02-22 22:31:28 +07:00
parent 9dc7ea320d
commit 0704306e1d
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -16,7 +16,8 @@ class NexxIE(InfoExtractor):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
(?: (?:
https?://api\.nexx(?:\.cloud|cdn\.com)/v3/\d+/videos/byid/| https?://api\.nexx(?:\.cloud|cdn\.com)/v3/\d+/videos/byid/|
nexx:(?:\d+:)? nexx:(?:\d+:)?|
https?://arc\.nexx\.cloud/api/video/
) )
(?P<id>\d+) (?P<id>\d+)
''' '''
@ -65,6 +66,9 @@ class NexxIE(InfoExtractor):
}, { }, {
'url': 'nexx:128907', 'url': 'nexx:128907',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://arc.nexx.cloud/api/video/128907.json',
'only_matching': True,
}] }]
@staticmethod @staticmethod