better handle utf-8
This commit is contained in:
parent
657e8fe407
commit
947d50da4e
2 changed files with 5 additions and 3 deletions
|
|
@ -47,6 +47,6 @@ class Videoob(ConsoleApplication):
|
|||
|
||||
@ConsoleApplication.command('Search videos')
|
||||
def command_search(self, pattern=None):
|
||||
print u'Search pattern: %s' % pattern if pattern else u'Last videos'
|
||||
print (u'Search pattern: %s' % pattern if pattern else u'Last videos').encode('utf-8')
|
||||
for backend, video in self.weboob.do('iter_search_results', pattern=pattern, nsfw=self.options.nsfw):
|
||||
self.format(video)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue