projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'drags/yt-feed-loadmore'
[youtube-dl]
/
youtube_dl
/
extractor
/
mlb.py
diff --git
a/youtube_dl/extractor/mlb.py
b/youtube_dl/extractor/mlb.py
index 84f50082186fa5b7da7237149420f6f9c4adc8bd..bfdb462ebaf663df7d7c4f3c1618988f0aa1d1e3 100644
(file)
--- a/
youtube_dl/extractor/mlb.py
+++ b/
youtube_dl/extractor/mlb.py
@@
-11,7
+11,7
@@
from ..utils import (
class MLBIE(InfoExtractor):
class MLBIE(InfoExtractor):
- _VALID_URL = r'http
?://m\.mlb\.com/.*video/(?:topic/[\da-z_-]+/)?v
(?P<id>n?\d+)'
+ _VALID_URL = r'http
s?://m\.mlb\.com/(?:(?:.*?/)?video/(?:topic/[\da-z_-]+/)?v|shared/video/embed/embed\.html\?.*?\bcontent_id=)
(?P<id>n?\d+)'
_TESTS = [
{
'url': 'http://m.mlb.com/sea/video/topic/51231442/v34698933/nymsea-ackley-robs-a-home-run-with-an-amazing-catch/?c_id=sea',
_TESTS = [
{
'url': 'http://m.mlb.com/sea/video/topic/51231442/v34698933/nymsea-ackley-robs-a-home-run-with-an-amazing-catch/?c_id=sea',
@@
-69,6
+69,10
@@
class MLBIE(InfoExtractor):
'thumbnail': 're:^https?://.*\.jpg$',
},
},
'thumbnail': 're:^https?://.*\.jpg$',
},
},
+ {
+ 'url': 'http://m.mlb.com/shared/video/embed/embed.html?content_id=35692085&topic_id=6479266&width=400&height=224&property=mlb',
+ 'only_matching': True,
+ },
]
def _real_extract(self, url):
]
def _real_extract(self, url):