1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 04:32:56 +08:00

[nbc] Add test and fix from dstftw

This commit is contained in:
einstein95 2017-10-25 18:03:49 +13:00
parent 594df602d2
commit c44d56005d

View File

@ -15,7 +15,7 @@ from ..utils import (
class NBCIE(AdobePassIE):
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/(?:classic-tv/|)[^/]+/video/[^/]+/(?P<id>n?\d+))'
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/(?:classic-tv/)?[^/]+/video/[^/]+/(?P<id>n?\d+))'
_TESTS = [
{
@ -68,6 +68,23 @@ class NBCIE(AdobePassIE):
},
'skip': 'Only works from US',
}
{
'url': 'https://www.nbc.com/classic-tv/charles-in-charge/video/charles-in-charge-pilot/n3310',
'info_dict': {
'id': 'n3310',
'ext': 'mp4',
'title': 'Charles in Charge: Pilot',
'description': 'Charles\' attempt to impress the campus beauty goes awry.',
'timestamp': 465638400,
'upload_date': '19841003',
'uploader': 'NBCU-COM',
},
'params': {
# m3u8 download
'skip_download': True,
},
'skip': 'Only works from US',
},
]
def _real_extract(self, url):