Skip to content

Commit

Permalink
Merge pull request #14392 from snipem/nbc-fix
Browse files Browse the repository at this point in the history
Fix for JSON meta data download(closes #13651)
  • Loading branch information
remitamine committed Oct 3, 2017
2 parents d2ae7e2 + b7e14f0 commit bfd484c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/nbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class NBCIE(AdobePassIE):
_VALID_URL = r'(?P<permalink>https?://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'

_TESTS = [
{
Expand Down Expand Up @@ -72,6 +72,7 @@ class NBCIE(AdobePassIE):

def _real_extract(self, url):
permalink, video_id = re.match(self._VALID_URL, url).groups()
permalink = 'http' + permalink
video_data = self._download_json(
'https://api.nbc.com/v3/videos', video_id, query={
'filter[permalink]': permalink,
Expand Down

0 comments on commit bfd484c

Please sign in to comment.