浏览代码

[godtv] Relax _VALID_URL

Sergey M․ 9 年之前
父节点
当前提交
b0aebe702c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      youtube_dl/extractor/godtv.py

+ 4 - 1
youtube_dl/extractor/godtv.py

@@ -6,7 +6,7 @@ from ..utils import js_to_json
 
 
 
 
 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):