implement max_results option and infinite search for youtube

This commit is contained in:
Christophe Benz 2010-08-11 21:35:20 +02:00
commit 53f6571fee
7 changed files with 82 additions and 31 deletions

View file

@ -20,6 +20,7 @@ import re
from weboob.tools.browser import BasePage
from weboob.tools.parsers.lxmlparser import select
from weboob.tools.misc import to_unicode
from .video import YoutubeVideo
@ -59,7 +60,7 @@ class VideoPage(BasePage):
def get_title(self):
element = select(self.document.getroot(), 'meta[name=title]', 1)
return unicode(element.attrib['content']).strip()
return to_unicode(element.attrib['content'].strip())
def get_url(self, _id):
video_signature = None