Browse Source

[nbcnews] Extend _VALID_URL

totalwebcasting
Sergey M․ 9 years ago
parent
commit
3f125c8c70
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/extractor/nbc.py

+ 5
- 1
youtube_dl/extractor/nbc.py View File

@ -124,7 +124,7 @@ class NBCSportsIE(InfoExtractor):
class NBCNewsIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.)?nbcnews\.com/
(?:video/.+?/(?P<id>\d+)|
(?:feature|nightly-news)/[^/]+/(?P<title>.+))
(?:watch|feature|nightly-news)/[^/]+/(?P<title>.+))
'''
_TESTS = [
@ -169,6 +169,10 @@ class NBCNewsIE(InfoExtractor):
'description': 'md5:1c10c1eccbe84a26e5debb4381e2d3c5',
},
},
{
'url': 'http://www.nbcnews.com/watch/dateline/full-episode--deadly-betrayal-386250819952',
'only_matching': True,
},
]
def _real_extract(self, url):


Loading…
Cancel
Save