ibaiGorordo / Midasv2_1_small-TFLite-Inference

Python scripts to perform monocular depth estimation using Python with the Midas v2.1 small Tensorflow Lite model.
MIT License
23 stars 12 forks source link

dislike count issue #1

Closed noobtoob4lyfe closed 2 years ago

noobtoob4lyfe commented 2 years ago

since youtube removed dislikes there seems to be an issue when this part of the code is reached.

line 54, in _fetch_basic self._dislikes = self._ydl_info['dislike_count'] KeyError: 'dislike_count'

ibaiGorordo commented 2 years ago

Yeah, I have stopped using pafy in the latest repositories I uploaded. The solution seems to be to use a git version instead of the pypi version: https://github.com/mps-youtube/pafy/pull/305#issuecomment-986212672

Hopefully the official pafy library release is updated, but it will probably take time...

ibaiGorordo commented 2 years ago

Hi,

If you try the latest youtube-dl version, the issue seems to have been solved: pip install pafy youtube_dl --upgrade