]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[howstuffwoks] fix _VALID_URL regex
authorremitamine <remitamine@gmail.com>
Fri, 17 Jul 2015 15:18:33 +0000 (16:18 +0100)
committerremitamine <remitamine@gmail.com>
Fri, 17 Jul 2015 15:18:33 +0000 (16:18 +0100)
youtube_dl/extractor/howstuffworks.py

index e9733912132798d99be18bb935dcd3c3b190525d..f59393150898a463cca1d044333f351ca2c11b7d 100644 (file)
@@ -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',