diff options
author | Philipp Hagemeister <[email protected]> | 2014-01-17 02:53:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-01-17 02:56:13 +0100 |
commit | 484aaeb20470c2091acdba38fb2a7578822953b8 (patch) | |
tree | e79d5f3def208a72c0a4efce244f5a964c462a4a /test | |
parent | 8e589a8a47dfa16de629b61ccd6d3b7b75d6a5ff (diff) | |
download | youtube-dl-484aaeb20470c2091acdba38fb2a7578822953b8.tar.gz youtube-dl-484aaeb20470c2091acdba38fb2a7578822953b8.zip |
[everyonesmixtape] Add support (Fixes #2161)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_download.py | 2 | ||||
-rw-r--r-- | test/test_playlists.py | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py index d0be8d27c..0d925ae69 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -148,7 +148,7 @@ def generator(test_case): for key, value in info_dict.items() if value and key in ('title', 'description', 'uploader', 'upload_date', 'uploader_id', 'location')) if not all(key in tc.get('info_dict', {}).keys() for key in test_info_dict.keys()): - sys.stderr.write(u'\n"info_dict": ' + json.dumps(test_info_dict, ensure_ascii=False, indent=2) + u'\n') + sys.stderr.write(u'\n"info_dict": ' + json.dumps(test_info_dict, ensure_ascii=False, indent=4) + u'\n') # Check for the presence of mandatory fields for key in ('id', 'url', 'title', 'ext'): diff --git a/test/test_playlists.py b/test/test_playlists.py index b3bfbd923..5eeba091e 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -32,6 +32,7 @@ from youtube_dl.extractor import ( IviCompilationIE, ImdbListIE, KhanAcademyIE, + EveryonesMixtapeIE, ) @@ -210,6 +211,15 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['description'], 'How have humans protected their secret messages through history? What has changed today?') self.assertTrue(len(result['entries']) >= 3) + def test_EveryonesMixtape(self): + dl = FakeYDL() + ie = EveryonesMixtapeIE(dl) + result = ie.extract('http://everyonesmixtape.com/#/mix/m7m0jJAbMQi') + self.assertIsPlaylist(result) + self.assertEqual(result['id'], 'm7m0jJAbMQi') + self.assertEqual(result['title'], 'Driving') + self.assertEqual(len(result['entries']), 24) + if __name__ == '__main__': unittest.main() |