[screenwavemedia] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 13:05:11 +0000 (19:05 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 13:05:11 +0000 (19:05 +0600)
youtube_dl/extractor/screenwavemedia.py

index 4d1379615c0df3abbebe177e10459e109c7ae271..05f93904c6ff856e8eacd5a8eaaa178d89e975fa 100644 (file)
@@ -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',