diff --git a/AUTHORS b/AUTHORS index 196c29c..c9b9cbb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,3 +9,4 @@ hugovk ids1024 williamroot trygveaa +itsreallyfather diff --git a/README.rst b/README.rst index b111ba0..6b6ac5c 100644 --- a/README.rst +++ b/README.rst @@ -65,8 +65,8 @@ get certain attributes: >>> video.viewcount, video.author, video.length (1916, 'PyCon 2014', 10394) - >>> video.duration, video.likes, video.dislikes - ('02:53:14', 25, 0) + >>> video.duration, video.likes + ('02:53:14', 25) >>> print(video.description) Speaker: Richard Jones 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..66c19a0 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=[] )