diff --git a/test/test_metacafe_ffilter.py b/test/test_metacafe_ffilter.py deleted file mode 100644 index a981f88f9..000000000 --- a/test/test_metacafe_ffilter.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -import os -import sys -import unittest -sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) - -from test.helper import try_rm - -from youtube_dl import YoutubeDL - -class TestMetacafeFFilter(unittest.TestCase): - def test_metacafe(self): - filename = '2155630.mp4' - url = 'http://www.metacafe.com/watch/2155630/adult_art_by_david_hart_156/' - - params = { - 'skip_download': True, - 'writeinfojson': True, - 'outtmpl': '%(id)s.%(ext)s', - } - ydl = YoutubeDL(params) - ydl.add_default_info_extractors() - json_filename = os.path.splitext(filename)[0] + '.info.json' - try_rm(json_filename) - ydl.download([url]) - res = os.path.exists(json_filename) - try_rm(json_filename) - self.assertTrue(res) - - -if __name__ == '__main__': - unittest.main() diff --git a/youtube_dl/extractor/metacafe.py b/youtube_dl/extractor/metacafe.py index 6da69f84d..ecf3276b1 100644 --- a/youtube_dl/extractor/metacafe.py +++ b/youtube_dl/extractor/metacafe.py @@ -50,6 +50,19 @@ class MetacafeIE(InfoExtractor): }, 'skip': 'Page is temporarily unavailable.', }, + # metacafe video with family filter + { + 'url': 'http://www.metacafe.com/watch/2155630/adult_art_by_david_hart_156/', + 'md5': 'be6fe1f53864593349158bed94aae3a2', + 'info_dict': { + 'id': '2155630', + 'ext': 'mp4', + 'title': 'Adult Art By David Hart #156', + 'uploader': 'hartistry', + 'description': 'Adult Art By David Hart. All the Art Works presented here are not in the possession of the American Artist, David John Hart. The paintings are in collections worldwide of individuals, countries, art museums, foundations and charities.', + }, + 'skip': 'Page is temporarily unavailable.', + }, # AnyClip video { 'url': 'http://www.metacafe.com/watch/an-dVVXnuY7Jh77J/the_andromeda_strain_1971_stop_the_bomb_part_3/',