diff options
author | Sergey M. <dstftw@gmail.com> | 2015-07-17 22:08:40 +0600 |
---|---|---|
committer | Sergey M. <dstftw@gmail.com> | 2015-07-17 22:08:40 +0600 |
commit | eacd875f3be175a4ddd73763c73017ed04cce4ce (patch) | |
tree | bb89dd8a6e940ca1b7e26d02d4a843c8d3f73488 /youtube_dl/extractor | |
parent | a38436e8898b6eca29d9279346e6e2136ec0bc8f (diff) | |
parent | c4fe07c7afcc59dfcd5cfa4626ad37deb19e1033 (diff) |
Merge pull request #6259 from remitamine/howstuffworks
[howstuffwoks] fix _VALID_URL regex
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/howstuffworks.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/howstuffworks.py b/youtube_dl/extractor/howstuffworks.py index e97339121..663e6632a 100644 --- a/youtube_dl/extractor/howstuffworks.py +++ b/youtube_dl/extractor/howstuffworks.py @@ -10,7 +10,7 @@ from ..utils import ( class HowStuffWorksIE(InfoExtractor): - _VALID_URL = r'https?://[\da-z-]+\.howstuffworks\.com/(?:[^/]+/)*\d+-(?P<id>.+?)-video\.htm' + _VALID_URL = r'https?://[\da-z-]+\.howstuffworks\.com/(?:[^/]+/)*(?:\d+-)?(?P<id>.+?)-video\.htm' _TESTS = [ { 'url': 'http://adventure.howstuffworks.com/5266-cool-jobs-iditarod-musher-video.htm', @@ -46,6 +46,10 @@ class HowStuffWorksIE(InfoExtractor): 'thumbnail': 're:^https?://.*\.jpg$', }, }, + { + 'url': 'http://shows.howstuffworks.com/stuff-to-blow-your-mind/optical-illusions-video.htm', + 'only_matching': True, + } ] def _real_extract(self, url): |