projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
416878f
)
[godtv] Relax _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Thu, 9 Jun 2016 14:34:47 +0000
(21:34 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 9 Jun 2016 14:34:47 +0000
(21:34 +0700)
youtube_dl/extractor/godtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/godtv.py
b/youtube_dl/extractor/godtv.py
index 7deca00aaec4ec492e97863344144161897a2fd8..c5d3b4e6a73c3bebba532eef8a6bbe8732f2b03e 100644
(file)
--- a/
youtube_dl/extractor/godtv.py
+++ b/
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 = [{
'url': 'http://god.tv/jesus-image/video/jesus-conference-2016/randy-needham',
'info_dict': {
_TESTS = [{
'url': 'http://god.tv/jesus-image/video/jesus-conference-2016/randy-needham',
'info_dict': {
@@
-30,6
+30,9
@@
class GodTVIE(InfoExtractor):
}, {
'url': 'http://god.tv/live/africa',
'only_matching': True,
}, {
'url': 'http://god.tv/live/africa',
'only_matching': True,
+ }, {
+ 'url': 'http://god.tv/liveevents',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):