projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b30ef07
)
[nytimes] Support embed URL
author
Sergey M․
<dstftw@gmail.com>
Thu, 19 Mar 2015 15:17:04 +0000
(21:17 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 19 Mar 2015 15:17:04 +0000
(21:17 +0600)
youtube_dl/extractor/nytimes.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nytimes.py
b/youtube_dl/extractor/nytimes.py
index 56e1cad3b0021431721b59df2162feaf7e0c357b..5b57e95b6c33acea61edef4a794e9657266b5bb5 100644
(file)
--- a/
youtube_dl/extractor/nytimes.py
+++ b/
youtube_dl/extractor/nytimes.py
@@
-7,7
+7,7
@@
from ..utils import parse_iso8601
class NYTimesIE(InfoExtractor):
- _VALID_URL = r'https?://(?:
www\.)?nytimes\.com/video/(?:[^/]+/)+
(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:
(?:www\.)?nytimes\.com/video/(?:[^/]+/)+|graphics8\.nytimes\.com/bcvideo/\d+(?:\.\d+)?/iframe/embed\.html\?videoId=)
(?P<id>\d+)'
_TEST = {
'url': 'http://www.nytimes.com/video/opinion/100000002847155/verbatim-what-is-a-photocopier.html?playlistId=100000001150263',