Don't use \x0F when not bold formatting
This commit is contained in:
parent
7996652848
commit
387dd2cef5
|
@ -69,9 +69,9 @@ class YouTube(Plugin):
|
|||
data = self._api(self.SEARCH, q=' '.join(args['<query>']))
|
||||
|
||||
if 'error' in data:
|
||||
return '\x02[YouTube]\x0F Error performing search'
|
||||
return '\x02[YouTube]\x02 Error performing search'
|
||||
elif data['pageInfo']['totalResults'] is 0:
|
||||
return '\x02[YouTube]\x0F No results found'
|
||||
return '\x02[YouTube]\x02 No results found'
|
||||
else:
|
||||
video_id = data['items'][0]['id']['videoId']
|
||||
data = self.get_video_data(video_id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user