mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-17 07:45:58 +00:00
Merge pull request #6259 from remitamine/howstuffworks
[howstuffwoks] fix _VALID_URL regex
This commit is contained in:
commit
eacd875f3b
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue