]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[nytimes] Support embed URL
authorSergey M․ <dstftw@gmail.com>
Thu, 19 Mar 2015 15:17:04 +0000 (21:17 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 19 Mar 2015 15:17:04 +0000 (21:17 +0600)
youtube_dl/extractor/nytimes.py

index 56e1cad3b0021431721b59df2162feaf7e0c357b..5b57e95b6c33acea61edef4a794e9657266b5bb5 100644 (file)
@@ -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',