def test_generic_rss_feed(self): dl = FakeYDL() ie = GenericIE(dl) result = ie.extract("http://phihag.de/2014/youtube-dl/rss.xml") self.assertIsPlaylist(result) self.assertEqual(result["id"], "http://phihag.de/2014/youtube-dl/rss.xml") self.assertEqual(result["title"], "Zero Punctuation") self.assertTrue(len(result["entries"]) > 10)
def test_generic_rss_feed(self): dl = FakeYDL() ie = GenericIE(dl) result = ie.extract('http://phihag.de/2014/youtube-dl/rss.xml') self.assertIsPlaylist(result) self.assertEqual(result['id'], 'http://phihag.de/2014/youtube-dl/rss.xml') self.assertEqual(result['title'], 'Zero Punctuation') self.assertTrue(len(result['entries']) > 10)
def test_generic_rss_feed(self): dl = FakeYDL() ie = GenericIE(dl) result = ie.extract('http://www.escapistmagazine.com/rss/videos/list/1.xml') self.assertIsPlaylist(result) self.assertEqual(result['id'], 'http://www.escapistmagazine.com/rss/videos/list/1.xml') self.assertEqual(result['title'], 'Zero Punctuation') self.assertTrue(len(result['entries']) > 10)
def test_multiple_brightcove_videos(self): # https://github.com/rg3/youtube-dl/issues/2283 dl = FakeYDL() ie = GenericIE(dl) result = ie.extract('http://www.newyorker.com/online/blogs/newsdesk/2014/01/always-never-nuclear-command-and-control.html') self.assertIsPlaylist(result) self.assertEqual(result['id'], 'always-never-nuclear-command-and-control') self.assertEqual(result['title'], 'Always/Never: A Little-Seen Movie About Nuclear Command and Control : The New Yorker') self.assertEqual(len(result['entries']), 3)
def test_multiple_brightcove_videos(self): # https://github.com/rg3/youtube-dl/issues/2283 dl = FakeYDL() ie = GenericIE(dl) result = ie.extract( 'http://www.newyorker.com/online/blogs/newsdesk/2014/01/always-never-nuclear-command-and-control.html' ) self.assertIsPlaylist(result) self.assertEqual(result['id'], 'always-never-nuclear-command-and-control') self.assertEqual( result['title'], 'Always/Never: A Little-Seen Movie About Nuclear Command and Control : The New Yorker' ) self.assertEqual(len(result['entries']), 3)