projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e276fd2
)
[screenwavemedia] Add EMBED_PATTERN
author
Sergey M․
<dstftw@gmail.com>
Sat, 29 Aug 2015 12:57:44 +0000
(18:57 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 29 Aug 2015 13:00:38 +0000
(19:00 +0600)
youtube_dl/extractor/screenwavemedia.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/screenwavemedia.py
b/youtube_dl/extractor/screenwavemedia.py
index 671ea57d0235a7f489fdace8dbaac79a35e6d099..4d1379615c0df3abbebe177e10459e109c7ae271 100644
(file)
--- a/
youtube_dl/extractor/screenwavemedia.py
+++ b/
youtube_dl/extractor/screenwavemedia.py
@@
-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,