]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Fix _VALID_URLs further (#10594)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 8 Sep 2016 09:39:29 +0000 (17:39 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 8 Sep 2016 09:39:29 +0000 (17:39 +0800)
youtube_dl/extractor/abcnews.py
youtube_dl/extractor/karaoketv.py

index 8a5ae42f0234c9db022309d99a48598530752c65..01247feadc37bde52840329b682987f072c5ecba 100644 (file)
@@ -12,7 +12,7 @@ from ..compat import compat_urlparse
 
 class AbcNewsVideoIE(AMPIE):
     IE_NAME = 'abcnews:video'
-    _VALID_URL = 'https?://abcnews.go.com/[^/]+/video/(?P<display_id>[0-9a-z-]+)-(?P<id>\d+)'
+    _VALID_URL = r'https?://abcnews\.go\.com/[^/]+/video/(?P<display_id>[0-9a-z-]+)-(?P<id>\d+)'
 
     _TESTS = [{
         'url': 'http://abcnews.go.com/ThisWeek/video/week-exclusive-irans-foreign-minister-zarif-20411932',
index 2f37786df7a5ad3fb0fa435d4e678d22787c8c2b..bad46005bd8ffe3aa1a2edc9e3b899353b347692 100644 (file)
@@ -5,7 +5,7 @@ from .common import InfoExtractor
 
 
 class KaraoketvIE(InfoExtractor):
-    _VALID_URL = r'https?://www.karaoketv.co.il/[^/]+/(?P<id>\d+)'
+    _VALID_URL = r'https?://www\.karaoketv\.co\.il/[^/]+/(?P<id>\d+)'
     _TEST = {
         'url': 'http://www.karaoketv.co.il/%D7%A9%D7%99%D7%A8%D7%99_%D7%A7%D7%A8%D7%99%D7%95%D7%A7%D7%99/58356/%D7%90%D7%99%D7%96%D7%95%D7%9F',
         'info_dict': {