aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-11-01 04:01:58 +0700
committerSergey M․ <dstftw@gmail.com>2014-11-01 04:01:58 +0700
commit5263cdfcf9b9c8684959cdba307fd4cd7e1e0338 (patch)
tree7d964d46d464398fa6fbb0360543c99c561b33b0
parentb2a68d14cf5dc0a3732ca039b3dd67c94a628be5 (diff)
[generic] Improve MLB iframe regex
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index a27ec342e..3882e859c 100644
--- 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')