Browse Source

Add YoutubeSearchDateIE extractor to youtube.py & __init__.py, which searches by publication date.

rtmp_test
Craig Markwardt 11 years ago
parent
commit
a3dd924871
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      youtube_dl/extractor/__init__.py
  2. +3
    -0
      youtube_dl/extractor/youtube.py

+ 1
- 0
youtube_dl/extractor/__init__.py View File

@ -159,6 +159,7 @@ from .youtube import (
YoutubeIE,
YoutubePlaylistIE,
YoutubeSearchIE,
YoutubeSearchDateIE,
YoutubeUserIE,
YoutubeChannelIE,
YoutubeShowIE,


+ 3
- 0
youtube_dl/extractor/youtube.py View File

@ -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'


Loading…
Cancel
Save