aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nba.py
diff options
context:
space:
mode:
authorcryptonaut <cryptonaut64@gmail.com>2014-12-06 01:42:58 -0800
committercryptonaut <cryptonaut64@gmail.com>2014-12-06 01:49:22 -0800
commit1a9f8b1ad4f56c42e28f45bb727d0fc20f71c7a7 (patch)
treef2d2bcd650d7ad8e75985d2e71d414774d16f074 /youtube_dl/extractor/nba.py
parent0df23ba9f9ddef005ec5f592ccb43b41564b5767 (diff)
[nba] Improve _VALID_URL regex (fixes #4387)
Allows for optional trailing / or /index.html
Diffstat (limited to 'youtube_dl/extractor/nba.py')
-rw-r--r--youtube_dl/extractor/nba.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nba.py b/youtube_dl/extractor/nba.py
index f69fe0925..842ea66a1 100644
--- a/youtube_dl/extractor/nba.py
+++ b/youtube_dl/extractor/nba.py
@@ -10,7 +10,7 @@ from ..utils import (
class NBAIE(InfoExtractor):
- _VALID_URL = r'https?://(?:watch\.|www\.)?nba\.com/(?:nba/)?video(?P<id>/[^?]*?)(?:/index\.html)?(?:\?.*)?$'
+ _VALID_URL = r'https?://(?:watch\.|www\.)?nba\.com/(?:nba/)?video(?P<id>/[^?]*?)/?(?:/index\.html)?(?:\?.*)?$'
_TEST = {
'url': 'http://www.nba.com/video/games/nets/2012/12/04/0021200253-okc-bkn-recap.nba/index.html',
'md5': 'c0edcfc37607344e2ff8f13c378c88a4',