A feature-rich command-line audio/video downloader
[screenwavemedia] Improve _VALID_URL
Sergey M․678d33295ba4
diff --git a/youtube_dl/extractor/screenwavemedia.py b/youtube_dl/extractor/screenwavemedia.pyindex 4d1379615c..05f93904c6 100644--- a/youtube_dl/extractor/screenwavemedia.py+++ b/youtube_dl/extractor/screenwavemedia.py@@ -12,7 +12,7 @@ from ..utils import (class ScreenwaveMediaIE(InfoExtractor):- _VALID_URL = r'http://player\d?\.screenwavemedia\.com/(?:play/)?[a-zA-Z]+\.php\?[^"]*\bid=(?P<id>.+)'+ _VALID_URL = r'https?://player\d?\.screenwavemedia\.com/(?:play/)?[a-zA-Z]+\.php\?.*\bid=(?P<id>[A-Za-z0-9-]+)'EMBED_PATTERN = r'src=(["\'])(?P<url>(?:https?:)?//player\d?\.screenwavemedia\.com/(?:play/)?[a-zA-Z]+\.php\?.*\bid=.+?)\1'_TESTS = [{'url': 'http://player.screenwavemedia.com/play/play.php?playerdiv=videoarea&companiondiv=squareAd&id=Cinemassacre-19911',