-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get video info even if no likes/dislikes exist #288
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
..