[nbc] Add the test case from #9578
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 8 Jun 2016 12:50:01 +0000 (20:50 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 8 Jun 2016 12:50:01 +0000 (20:50 +0800)
Closes #9578

youtube_dl/extractor/nbc.py

index 46504cd5ff6aafa40d662caa58eaec08b1c88a48..f27c7f139314a75734129c0ff4d61e4b413f4790 100644 (file)
@@ -67,6 +67,23 @@ class NBCIE(InfoExtractor):
             # This video has expired but with an escaped embedURL
             'url': 'http://www.nbc.com/parenthood/episode-guide/season-5/just-like-at-home/515',
             'only_matching': True,
+        },
+        {
+            # HLS streams requires the 'hdnea3' cookie
+            'url': 'http://www.nbc.com/Kings/video/goliath/n1806',
+            'info_dict': {
+                'id': 'n1806',
+                'ext': 'mp4',
+                'title': 'Goliath',
+                'description': 'When an unknown soldier saves the life of the King\'s son in battle, he\'s thrust into the limelight and politics of the kingdom.',
+                'timestamp': 1237100400,
+                'upload_date': '20090315',
+                'uploader': 'NBCU-COM',
+            },
+            'params': {
+                'skip_download': True,
+            },
+            'skip': 'Only works from US',
         }
     ]