X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fyahoo.py;h=32d5b9477f5b8d309fabd89322cde3a02b33caeb;hb=0f818663291752b2084d81aff76d945a43c66a06;hp=4b3aec9d1f5a8ce91f676d585e5f98dd3ba126aa;hpb=825e0984e27f0c626c4d072066e0c9cae9069704;p=youtube-dl diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index 4b3aec9d1..32d5b9477 100644 --- a/youtube_dl/extractor/yahoo.py +++ b/youtube_dl/extractor/yahoo.py @@ -11,8 +11,17 @@ from ..utils import ( ) class YahooIE(InfoExtractor): - """Information extractor for screen.yahoo.com.""" + IE_DESC = u'Yahoo screen' _VALID_URL = r'http://screen\.yahoo\.com/.*?-(?P\d*?)\.html' + _TEST = { + u'url': u'http://screen.yahoo.com/julian-smith-travis-legg-watch-214727115.html', + u'file': u'214727115.flv', + u'md5': u'2e717f169c1be93d84d3794a00d4a325', + u'info_dict': { + u"title": u"Julian Smith & Travis Legg Watch Julian Smith" + }, + u'skip': u'Requires rtmpdump' + } def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) @@ -79,8 +88,7 @@ class YahooIE(InfoExtractor): return info_dict class YahooSearchIE(SearchInfoExtractor): - """Information Extractor for Yahoo! Video search queries.""" - + IE_DESC = u'Yahoo screen search' _MAX_RESULTS = 1000 IE_NAME = u'screen.yahoo:search' _SEARCH_KEY = 'yvsearch'