[pbs] Add test for #7059
authorSergey M․ <dstftw@gmail.com>
Sun, 4 Oct 2015 15:37:49 +0000 (21:37 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 4 Oct 2015 15:37:49 +0000 (21:37 +0600)
youtube_dl/extractor/pbs.py

index 66b3dda47a098d93261cadf40fbdee8a34c7c6ad..6923c609481a83401fa7f0fa030923d080001a89 100644 (file)
@@ -134,6 +134,24 @@ class PBSIE(InfoExtractor):
             'params': {
                 'skip_download': True,  # requires ffmpeg
             },
+        },
+        {
+            # Video embedded in iframe containing angle brackets as attribute's value (e.g.
+            # "<iframe style='position: absolute;<br />\ntop: 0; left: 0;' ...", see
+            # https://github.com/rg3/youtube-dl/issues/7059)
+            'url': 'http://www.pbs.org/food/features/a-chefs-life-season-3-episode-5-prickly-business/',
+            'info_dict': {
+                'id': '2365546844',
+                'display_id': 'a-chefs-life-season-3-episode-5-prickly-business',
+                'ext': 'mp4',
+                'title': "A Chef's Life - Season 3, Ep. 5: Prickly Business",
+                'description': 'md5:61db2ddf27c9912f09c241014b118ed1',
+                'duration': 1480,
+                'thumbnail': 're:^https?://.*\.jpg$',
+            },
+            'params': {
+                'skip_download': True,  # requires ffmpeg
+            },
         }
     ]