Browse Source

[nexx] Don't capture domain id and add support for domainless shortcuts

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
9dc7ea320d
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      youtube_dl/extractor/nexx.py

+ 5
- 2
youtube_dl/extractor/nexx.py View 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


Loading…
Cancel
Save