aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorCraig Markwardt <cbmarkwardt+github@gmail.com>2013-11-02 22:40:48 -0400
committerCraig Markwardt <cbmarkwardt+github@gmail.com>2013-11-02 22:40:48 -0400
commita3dd924871a6fa01d84cadf0a6f60ef622189f09 (patch)
treebdb14cfd6cdad699c9141002e9b3d6a88f265fa9 /youtube_dl/extractor/youtube.py
parentaa2484e390d8a5e74d740fda61b4062a4a8c1d0e (diff)
Add YoutubeSearchDateIE extractor to youtube.py & __init__.py, which searches by publication date.
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index dc601de52..6b5ce068d 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'