show page url in videoob search results
This commit is contained in:
parent
0bcf72c08f
commit
4cc065e05f
3 changed files with 6 additions and 3 deletions
|
|
@ -63,6 +63,7 @@ class Videoob(ConsoleApplication):
|
|||
results['BEFORE'] = u'Search pattern: %s' % pattern
|
||||
else:
|
||||
results['BEFORE'] = u'Last videos'
|
||||
results['HEADER'] = ('ID', 'Title', 'Page URL')
|
||||
for backend in self.weboob.iter_backends():
|
||||
try:
|
||||
iterator = backend.iter_search_results(pattern)
|
||||
|
|
@ -71,8 +72,7 @@ class Videoob(ConsoleApplication):
|
|||
else:
|
||||
rows = []
|
||||
for video in iterator:
|
||||
rows.append(('ID', video.id))
|
||||
rows.append(('Title', video.title))
|
||||
rows.append((video.id, video.title, video.page_url))
|
||||
results[backend.name] = rows
|
||||
return results
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue