0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[godtv] Relax _VALID_URL

This commit is contained in:
Sergey M․ 2016-06-09 21:34:47 +07:00
parent 416878f41f
commit b0aebe702c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -6,7 +6,7 @@
class GodTVIE(InfoExtractor): class GodTVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?god\.tv(?:/[^/]+)+/(?P<id>[^/?#&]+)' _VALID_URL = r'https?://(?:www\.)?god\.tv(?:/[^/]+)*/(?P<id>[^/?#&]+)'
_TESTS = [{ _TESTS = [{
'url': 'http://god.tv/jesus-image/video/jesus-conference-2016/randy-needham', 'url': 'http://god.tv/jesus-image/video/jesus-conference-2016/randy-needham',
'info_dict': { 'info_dict': {
@ -30,6 +30,9 @@ class GodTVIE(InfoExtractor):
}, { }, {
'url': 'http://god.tv/live/africa', 'url': 'http://god.tv/live/africa',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://god.tv/liveevents',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):