aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/espn.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-09-04 04:59:46 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-04 04:59:46 +0700
commit37c7490ac62d4aacbf9103bf6760d20f21984a55 (patch)
tree22a8f60866ee0083216b62959e21c54bd04321f1 /youtube_dl/extractor/espn.py
parent091624f9da491ef3a98e63367bf4ffd9836dafde (diff)
downloadyoutube-dl-37c7490ac62d4aacbf9103bf6760d20f21984a55.tar.xz
[espn] Extend _VALID_URL (Closes #10549)
Diffstat (limited to 'youtube_dl/extractor/espn.py')
-rw-r--r--youtube_dl/extractor/espn.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/espn.py b/youtube_dl/extractor/espn.py
index 66c08bec4..6d10f8e68 100644
--- a/youtube_dl/extractor/espn.py
+++ b/youtube_dl/extractor/espn.py
@@ -5,7 +5,7 @@ from ..utils import remove_end
class ESPNIE(InfoExtractor):
- _VALID_URL = r'https?://espn\.go\.com/(?:[^/]+/)*(?P<id>[^/]+)'
+ _VALID_URL = r'https?://(?:espn\.go|(?:www\.)?espn)\.com/(?:[^/]+/)*(?P<id>[^/]+)'
_TESTS = [{
'url': 'http://espn.go.com/video/clip?id=10365079',
'md5': '60e5d097a523e767d06479335d1bdc58',
@@ -47,6 +47,9 @@ class ESPNIE(InfoExtractor):
}, {
'url': 'http://espn.go.com/nba/playoffs/2015/story/_/id/12887571/john-wall-washington-wizards-no-swelling-left-hand-wrist-game-5-return',
'only_matching': True,
+ }, {
+ 'url': 'http://www.espn.com/video/clip?id=10365079',
+ 'only_matching': True,
}]
def _real_extract(self, url):