View Single Post
Posts: 23 | Thanked: 2 times | Joined on Nov 2007 @ Elmont, NY
#177
Marcelo,

Since the beginning I always felt that the YouTube plug-in did not return all result from a search. Since the source is available I look into it, and I confirmed my assumption. I wonder if the Team wanted the plug-in to behave that way for some odd reasons.

Is it possible to change the behavior or the search in the next release with the following code in "client.py" at line 63.


from:
HTML Code:
    def search(self, query):
        """Search for video by keywords."""
        return self._request("%s?vq=%s",
                             self.url_video_search, quote(query))
to:
HTML Code:
    def search(self, query):
        """Search for video by keywords."""
        return self._request("%s?vq=%s&max-results=50&racy=include",
                             self.url_video_search, quote(query))
Thanks You,
Jacques
__________________
N800 - OS2008 - 2x 8Gb SDHC