]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
do not capture a group
authorremitamine <remitamine@gmail.com>
Fri, 17 Jul 2015 15:45:53 +0000 (16:45 +0100)
committerremitamine <remitamine@gmail.com>
Fri, 17 Jul 2015 15:45:53 +0000 (16:45 +0100)
youtube_dl/extractor/howstuffworks.py

index c9b6579a643138d8a6f95d2bea0d7bc8b9e5b4a7..cc931d571134b71628bce177e13e164494abb8b3 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',