From 97191a6999c18ac17ab9622daa287b7d9ae22cfc Mon Sep 17 00:00:00 2001 From: notLonelySoul <108740082+notLonelySoul@users.noreply.github.com> Date: Sun, 31 Jul 2022 10:26:57 +0530 Subject: [PATCH] Update backend_youtube_dl.py --- pafy/backend_youtube_dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pafy/backend_youtube_dl.py b/pafy/backend_youtube_dl.py index d9a19a4..469abc9 100644 --- a/pafy/backend_youtube_dl.py +++ b/pafy/backend_youtube_dl.py @@ -49,8 +49,8 @@ def _fetch_basic(self): self._rating = self._ydl_info['average_rating'] self._length = self._ydl_info['duration'] self._viewcount = self._ydl_info['view_count'] - self._likes = self._ydl_info.get('like_count', 0) - self._dislikes = self._ydl_info.get('dislike_count', 0) + self._likes = 0 + self._dislikes = 0 self._username = self._ydl_info['uploader_id'] self._category = self._ydl_info['categories'][0] if self._ydl_info['categories'] else '' self._bestthumb = self._ydl_info['thumbnails'][0]['url']