From a3dd924871a6fa01d84cadf0a6f60ef622189f09 Mon Sep 17 00:00:00 2001 From: Craig Markwardt Date: Sat, 2 Nov 2013 22:40:48 -0400 Subject: Add YoutubeSearchDateIE extractor to youtube.py & __init__.py, which searches by publication date. --- youtube_dl/extractor/youtube.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'youtube_dl/extractor/youtube.py') diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index dc601de..6b5ce06 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1743,6 +1743,9 @@ class YoutubeSearchIE(SearchInfoExtractor): videos = [self.url_result('http://www.youtube.com/watch?v=%s' % id, 'Youtube') for id in video_ids] return self.playlist_result(videos, query) +class YoutubeSearchDateIE(YoutubeSearchIE): + _API_URL = 'https://gdata.youtube.com/feeds/api/videos?q=%s&start-index=%i&max-results=50&v=2&alt=jsonc&orderby=published' + _SEARCH_KEY = 'ytsearchdate' class YoutubeShowIE(InfoExtractor): IE_DESC = u'YouTube.com (multi-season) shows' -- cgit v1.1