[nexx] Don't capture domain id and add support for domainless shortcuts
authorSergey M․ <dstftw@gmail.com>
Thu, 22 Feb 2018 15:27:19 +0000 (22:27 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 22 Feb 2018 15:27:19 +0000 (22:27 +0700)
youtube_dl/extractor/nexx.py

index 2ad540c26668043f85d36b6074fc519a4acc61d0..129f358a2fea1a522e4f90f46a495495f237cebb 100644 (file)
@@ -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