youtube: fix a SyntaxWarning

This commit is contained in:
jkhsjdhjs 2022-09-17 10:44:00 +00:00
parent 9c8203d433
commit 9ba11a50cd

View File

@ -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']