Skip to content

Commit

Permalink
[nbc] Add support for classic-tv videos
Browse files Browse the repository at this point in the history
  • Loading branch information
einstein95 authored and dstftw committed Oct 25, 2017
1 parent b8c6ffc commit d673ab6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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'https?(?P<permalink>://(?:www\.)?nbc\.com/[^/]+/video/[^/]+/(?P<id>n?\d+))'
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/(?:classic-tv/)?[^/]+/video/[^/]+/(?P<id>n?\d+))'

_TESTS = [
{
Expand Down Expand Up @@ -67,7 +67,11 @@ class NBCIE(AdobePassIE):
'skip_download': True,
},
'skip': 'Only works from US',
}
},
{
'url': 'https://www.nbc.com/classic-tv/charles-in-charge/video/charles-in-charge-pilot/n3310',
'only_matching': True,
},
]

def _real_extract(self, url):
Expand Down

0 comments on commit d673ab6

Please sign in to comment.