Skip to content

Commit

Permalink
Order youtube search results by relevance rather than rating.
Browse files Browse the repository at this point in the history
This makes the searches almost exactly match the website, and it's been requested enough that I think this change is worth doing.  Thanks to Dave Brown on the list for posting about how he had done this to good effect.
  • Loading branch information
Robert McNamara committed Mar 10, 2011
1 parent 24c464a commit 9b43aa8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -183,7 +183,7 @@ def __init__(self,
self.config[u'urls'] = {}

# v2 api calls - An example that must be customized for each target site
self.config[u'urls'][u'video.search'] = 'http://gdata.youtube.com/feeds/api/videos?vq=%s&max-results=%s&start-index=%s&orderby=rating&Ir=%s'
self.config[u'urls'][u'video.search'] = 'http://gdata.youtube.com/feeds/api/videos?vq=%s&max-results=%s&start-index=%s&orderby=relevance&Ir=%s'


# Functions that parse video data from RSS data
Expand Down

0 comments on commit 9b43aa8

Please sign in to comment.