From 43b9ed45b9c084d3790ea197297b07e7fd4829d9 Mon Sep 17 00:00:00 2001 From: diegooviedo3004 <81838575+diegooviedo3004@users.noreply.github.com> Date: Tue, 23 Nov 2021 19:53:16 -0600 Subject: [PATCH] removed self.dislikes --- pafy/backend_youtube_dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pafy/backend_youtube_dl.py b/pafy/backend_youtube_dl.py index d9a19a4..763b516 100644 --- a/pafy/backend_youtube_dl.py +++ b/pafy/backend_youtube_dl.py @@ -50,7 +50,7 @@ def _fetch_basic(self): 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._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']