Get video info even if no likes/dislikes exist#288
Get video info even if no likes/dislikes exist#288ritiek merged 1 commit intomps-youtube:developfrom
Conversation
|
I propose to change the lines 53 and 54 of file * backend_youtube_dl.py * to : self._likes = self._ydl_info.get('like_count',0) |
|
This is exactly what this PR is doing... 😉 |
|
Good day, I have the same problem so can you merge this branch thank you! |
|
Has the PR been merged yet? |
|
Looks good to me, thanks! By the way, I encourage all of you guys to check out pytube and see if it fits your needs, since it's more actively maintained. Really sorry I couldn't get this to merge earlier since I'm not actively working on pafy any more (and it seems like other maintainers have gone busy too). :( |
|
But ritiek, pafy is like WAYYYYY faster than pytube as ytdl, I have done tests, pafy was faster 100% of the time |
|
I have made changes as per the suggestion of @romainjouin in backend_youtube_dl.py file. although i am facing keyerror "Like count". Could anyone help me to resolve this? Ans. I just comment out those both line and my code works. |

If no likes/dislikes exist we get 0 not
KeyError..