Skip to content
Advertisement

backend_youtube_dl.py”, line 54, in _fetch_basic self._dislikes = self._ydl_info[‘dislike_count’] KeyError: ‘dislike_count’

I have the below code that has been used to download youtube videos. I automatically detect if it’s a playlist or single video. However all the sudden it is giving the above error. What can be the problem?

JavaScript

Advertisement

Answer

Your issue doesn’t have anything to do with your code.

Youtube does no longer have a dislike count, they simply removed it.

You just have to wait for the pafy package to be updated accordingly, or patch the package locally and remove that part by yourself.

Keep in mind there are at least 5 different pull requests open trying to fix it.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement