diff --git a/pafy/backend_internal.py b/pafy/backend_internal.py index 9ccdc28..4583b75 100644 --- a/pafy/backend_internal.py +++ b/pafy/backend_internal.py @@ -129,7 +129,6 @@ def _fetch_gdata(self): self._username = uni(snippet['channelTitle']) statistics = item["statistics"] self._likes = int(statistics["likeCount"]) - self._dislikes = int(statistics["dislikeCount"]) self._have_gdata = 1 diff --git a/pafy/backend_shared.py b/pafy/backend_shared.py index 6870759..69909c5 100644 --- a/pafy/backend_shared.py +++ b/pafy/backend_shared.py @@ -68,7 +68,6 @@ def __init__(self, video_url, basic=True, gdata=False, self._description = None self._likes = None - self._dislikes = None self._category = None self._published = None self._username = None @@ -317,14 +316,6 @@ def likes(self): return self._likes - @property - def dislikes(self): - """ The number of dislikes for the video. Returns int. """ - if not self._dislikes: - self._fetch_basic() - - return self._dislikes - @property def mix(self): """ The playlist for the related YouTube mix. Returns a Playlist object. """ diff --git a/pafy/backend_youtube_dl.py b/pafy/backend_youtube_dl.py index d9a19a4..6c29e76 100644 --- a/pafy/backend_youtube_dl.py +++ b/pafy/backend_youtube_dl.py @@ -50,7 +50,6 @@ 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._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'] diff --git a/pafy/playlist.py b/pafy/playlist.py index 6e164e1..0533198 100644 --- a/pafy/playlist.py +++ b/pafy/playlist.py @@ -64,7 +64,6 @@ def get_playlist(playlist_url, basic=False, gdata=False, likes=allinfo.get('likes'), title=allinfo.get('title'), author=allinfo.get('author'), - dislikes=allinfo.get('dislikes'), description=allinfo.get('description'), items=[] ) @@ -84,7 +83,6 @@ def get_playlist(playlist_url, basic=False, gdata=False, user_id=v.get('user_id'), privacy=v.get('privacy'), start=v.get('start', 0.0), - dislikes=v.get('dislikes'), duration=v.get('duration'), comments=v.get('comments'), keywords=v.get('keywords'), @@ -333,7 +331,6 @@ def dict_for_playlist(v): category=get_categoryname(v['snippet']['categoryId']), views=stats.get('viewCount', 0), likes=stats.get('likeCount', 0), - dislikes=stats.get('dislikeCount', 0), comments=stats.get('commentCount', 0), )