Skip to content

Commit

Permalink
change default value of _dislikes to correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-je committed Nov 23, 2021
1 parent 916dd37 commit 88e5d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88e5d97

Please sign in to comment.