about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCharles Chen <chaochichen@gmail.com>2014-07-22 14:10:27 -0700
committerCharles Chen <chaochichen@gmail.com>2014-07-22 14:10:27 -0700
commit07cc63f386c6afe253b7707631663072d2fb8789 (patch)
treeb67f4fbecb0e04ad71eab3261d0545bcdd17f18e
parent3b09757bacf4518b76ba6fef071ad8e65d6faa19 (diff)
downloadyoutube-dl-07cc63f386c6afe253b7707631663072d2fb8789.tar.gz
youtube-dl-07cc63f386c6afe253b7707631663072d2fb8789.tar.xz
youtube-dl-07cc63f386c6afe253b7707631663072d2fb8789.zip
[MLB] Enhanced _VALID_URL to cover more MLB videos
-rw-r--r--youtube_dl/extractor/mlb.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mlb.py b/youtube_dl/extractor/mlb.py
index 18ab2c135..84f500821 100644
--- a/youtube_dl/extractor/mlb.py
+++ b/youtube_dl/extractor/mlb.py
@@ -11,9 +11,23 @@ from ..utils import (
 
 
 class MLBIE(InfoExtractor):
-    _VALID_URL = r'http?://m\.mlb\.com/video/(?:topic/[\da-z_-]+/)?v(?P<id>n?\d+)'
+    _VALID_URL = r'http?://m\.mlb\.com/.*video/(?:topic/[\da-z_-]+/)?v(?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',
+            'md5': 'ff56a598c2cf411a9a38a69709e97079',
+            'info_dict': {
+                'id': '34698933',
+                'ext': 'mp4',
+                'title': "Ackley's spectacular catch",
+                'description': 'md5:7f5a981eb4f3cbc8daf2aeffa2215bf0',
+                'duration': 66,
+                'timestamp': 1405980600,
+                'upload_date': '20140721',
+                'thumbnail': 're:^https?://.*\.jpg$',
+            },
+        },
+        {
             'url': 'http://m.mlb.com/video/topic/81536970/v34496663/mianym-stanton-practices-for-the-home-run-derby',
             'md5': 'd9c022c10d21f849f49c05ae12a8a7e9',
             'info_dict': {