projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
539c881
)
[techtalks] Relax _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Mon, 3 Oct 2016 19:54:36 +0000
(
02:54
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 3 Oct 2016 19:54:36 +0000
(
02:54
+0700)
youtube_dl/extractor/techtalks.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/techtalks.py
b/youtube_dl/extractor/techtalks.py
index 0ec7b127367236a0911f3f78a8e3045350b37708..a5b62c717160380c873117e878017f5c3573939a 100644
(file)
--- a/
youtube_dl/extractor/techtalks.py
+++ b/
youtube_dl/extractor/techtalks.py
@@
-10,9
+10,9
@@
from ..utils import (
class TechTalksIE(InfoExtractor):
class TechTalksIE(InfoExtractor):
- _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]
*/)?(?P<id>\d+)/
'
+ _VALID_URL = r'https?://techtalks\.tv/talks/(?:[^/]
+/)?(?P<id>\d+)
'
- _TEST
=
{
+ _TEST
S = [
{
'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/',
'info_dict': {
'id': '57758',
'url': 'http://techtalks.tv/talks/learning-topic-models-going-beyond-svd/57758/',
'info_dict': {
'id': '57758',
@@
-38,7
+38,10
@@
class TechTalksIE(InfoExtractor):
# rtmp download
'skip_download': True,
},
# rtmp download
'skip_download': True,
},
- }
+ }, {
+ 'url': 'http://techtalks.tv/talks/57758',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)