projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a68d1
)
[generic] Improve MLB iframe regex
author
Sergey M․
<dstftw@gmail.com>
Fri, 31 Oct 2014 21:01:58 +0000
(
04:01
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 31 Oct 2014 21:01:58 +0000
(
04:01
+0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index a27ec342e905445b6cc640f028897335a908fc9f..3882e859c2b92993ce3f5da2a957083f223a9e44 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-887,7
+887,7
@@
class GenericIE(InfoExtractor):
return self.url_result(mobj.group('url'), 'SBS')
mobj = re.search(
- r'<iframe[^>]+?src=(["\'])(?P<url>https?://m\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1',
+ r'<iframe[^>]+?src=(["\'])(?P<url>https?://m
(?:lb)?
\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1',
webpage)
if mobj is not None:
return self.url_result(mobj.group('url'), 'MLB')