[screenwavemedia] Add EMBED_PATTERN
authorSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 12:57:44 +0000 (18:57 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 13:00:38 +0000 (19:00 +0600)
youtube_dl/extractor/screenwavemedia.py

index 671ea57d0235a7f489fdace8dbaac79a35e6d099..4d1379615c0df3abbebe177e10459e109c7ae271 100644 (file)
@@ -13,7 +13,7 @@ from ..utils import (
 
 class ScreenwaveMediaIE(InfoExtractor):
     _VALID_URL = r'http://player\d?\.screenwavemedia\.com/(?:play/)?[a-zA-Z]+\.php\?[^"]*\bid=(?P<id>.+)'
-
+    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',
         'only_matching': True,