From 88e5d97e7e53307dd1c1ad84fae72d495236173c Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Tue, 23 Nov 2021 15:04:41 +0000 Subject: [PATCH] change default value of _dislikes to correct type --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 4d628c0..3b6aef2 100644 --- a/bot.py +++ b/bot.py @@ -430,7 +430,7 @@ async def create_or_get_voice_client(self, message): def pafy_search(self, youtube_link_or_id): """Search for youtube link with pafy""" media = pafy.new(youtube_link_or_id) - if media.dislikes == "N/A": + if media.dislikes == 0: logging.info("Ignoring dislike count in new media") return media