summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-22 23:54:05 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-22 23:55:41 +0200
commit38e292b112b82c9d5559b7c49e2e1c99b9e97dba (patch)
tree5eabe74d3e16d8bf9912667d2c46b3ddcd4cf6fb
parentc4f731262dbee921147b94aac5035b5d9ec75502 (diff)
downloadyoutube-dl-38e292b112b82c9d5559b7c49e2e1c99b9e97dba.tar.gz
youtube-dl-38e292b112b82c9d5559b7c49e2e1c99b9e97dba.tar.xz
youtube-dl-38e292b112b82c9d5559b7c49e2e1c99b9e97dba.zip
[mlb] Fix regex
-rw-r--r--youtube_dl/extractor/mlb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mlb.py b/youtube_dl/extractor/mlb.py
index 84f500821..37c72bc53 100644
--- a/youtube_dl/extractor/mlb.py
+++ b/youtube_dl/extractor/mlb.py
@@ -11,7 +11,7 @@ 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'https?://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',