Don't use \x0F when not bold formatting

This commit is contained in:
mrhanky 2017-08-22 11:33:03 +02:00
parent 7996652848
commit 387dd2cef5
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -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)