From: Sergey M․ Date: Thu, 22 Feb 2018 15:27:19 +0000 (+0700) Subject: [nexx] Don't capture domain id and add support for domainless shortcuts X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=9dc7ea320d413dd42e8df565858f6adeadd215f3;p=youtube-dl.git [nexx] Don't capture domain id and add support for domainless shortcuts --- 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\d+)/videos/byid/| - nexx:(?P\d+): + https?://api\.nexx(?:\.cloud|cdn\.com)/v3/\d+/videos/byid/| + nexx:(?:\d+:)? ) (?P\d+) ''' @@ -62,6 +62,9 @@ class NexxIE(InfoExtractor): }, { 'url': 'nexx:748:128907', 'only_matching': True, + }, { + 'url': 'nexx:128907', + 'only_matching': True, }] @staticmethod