projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4f7312
)
[mlb] Fix regex
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 22 Jul 2014 21:54:05 +0000
(23:54 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 22 Jul 2014 21:55:41 +0000
(23:55 +0200)
youtube_dl/extractor/mlb.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mlb.py
b/youtube_dl/extractor/mlb.py
index 84f50082186fa5b7da7237149420f6f9c4adc8bd..37c72bc5357e3766819b0f86d5bc379fdf7406c4 100644
(file)
--- 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'http
s?://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',