youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 1a9f8b1ad4f56c42e28f45bb727d0fc20f71c7a7
parent 0df23ba9f9ddef005ec5f592ccb43b41564b5767
Author: cryptonaut <cryptonaut64@gmail.com>
Date:   Sat,  6 Dec 2014 01:42:58 -0800

[nba] Improve _VALID_URL regex (fixes #4387)

Allows for optional trailing / or /index.html

Diffstat:
Myoutube_dl/extractor/nba.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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',