aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-22 22:27:19 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-22 22:27:19 +0700
commit9dc7ea320d413dd42e8df565858f6adeadd215f3 (patch)
tree4fa43d925b2d3a8a0d2873a2c5ba722436f1948b
parente231afb14f24666f839e2f5851f08dc9eea92ef5 (diff)
[nexx] Don't capture domain id and add support for domainless shortcuts
-rw-r--r--youtube_dl/extractor/nexx.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/nexx.py b/youtube_dl/extractor/nexx.py
index 2ad540c26..129f358a2 100644
--- a/youtube_dl/extractor/nexx.py
+++ b/youtube_dl/extractor/nexx.py
@@ -15,8 +15,8 @@ from ..utils import (
class NexxIE(InfoExtractor):
_VALID_URL = r'''(?x)
(?:
- https?://api\.nexx(?:\.cloud|cdn\.com)/v3/(?P<domain_id>\d+)/videos/byid/|
- nexx:(?P<domain_id_s>\d+):
+ https?://api\.nexx(?:\.cloud|cdn\.com)/v3/\d+/videos/byid/|
+ nexx:(?:\d+:)?
)
(?P<id>\d+)
'''
@@ -62,6 +62,9 @@ class NexxIE(InfoExtractor):
}, {
'url': 'nexx:748:128907',
'only_matching': True,
+ }, {
+ 'url': 'nexx:128907',
+ 'only_matching': True,
}]
@staticmethod