youtube: fix a SyntaxWarning
This commit is contained in:
parent
9c8203d433
commit
9ba11a50cd
|
@ -70,7 +70,7 @@ class YouTube(Plugin):
|
|||
|
||||
if 'error' in data:
|
||||
return '\x02[YouTube]\x02 Error performing search'
|
||||
elif data['pageInfo']['totalResults'] is 0:
|
||||
elif data['pageInfo']['totalResults'] == 0:
|
||||
return '\x02[YouTube]\x02 No results found'
|
||||
else:
|
||||
video_id = data['items'][0]['id']['videoId']
|
||||
|
|
Loading…
Reference in New Issue
Block a user