-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Couldn't cipher the signature #117
Comments
There's an easy fix for that. Fix in pytube will be like that (I'll try to upload a pull request by today): Worked for me, hope it'll be helpful. |
Yeah. It worked. Thanks 👍 |
After changing api.py file it gives me : |
That is not a double quote in the beginning of the line
js_url = '' js_partial_url
^
…On 2 February 2017 at 22:49, Sonu Jangra ***@***.***> wrote:
After changing api.py file it gives me :
Traceback (most recent call last):
File "/usr/local/bin/pytube", line 7, in
from pytube.*main* import main
File "/usr/local/lib/python3.5/dist-packages/pytube/*init*.py", line 10,
in
from .api import YouTube
File "/usr/local/lib/python3.5/dist-packages/pytube/api.py", line 190
js_url = '' js_partial_url = video_data.get("assets", {}).get("js") if
js_partial_url.startswith('//'): js_url = 'http:' + js_partial_url elif
js_partial_url.startswith('/'): js_url = 'https://youtube.com' +
js_partial_url
^
SyntaxError: invalid syntax
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#117 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHnTHiVHG2Nt3zhKs5WiT5FUBCaiIS9kks5rYhAWgaJpZM4LyP9u>
.
--
regards,
Palash Goel
|
Can you show me the exact code how does it look . |
It is |
Urgh. Indentation is shot to hell. Someone should just submit a pull request. |
Yes agree with @harindu95 . please submit a pull request . Traceback (most recent call last): |
Ok. @rotemvilsa I submitted a pull request #120 |
@rotemvilsa hack works. ps: watch out for the code formatting |
Thanks for your help folks! Accepted PR and released to Pypi. |
thank you @nficano and @rotemvilsa. pytube does a great job conserving electrons. |
My pip is not picking up the new version in Pypi, and the documentation on the site does not appear correct: https://pypi.python.org/pypi/pytube/6.2.1 Note that the markup isn't parsed, and the platform and classifier data at the bottom is in the text, not parsed properly. So, I'm not sure what exactly is wrong, but I don't think it was installed properly. On further glance, it appears it's only installed for py2, and not py3, which is likely why I can't see it. |
I cannot reproduce this, seems to be working for me:
|
I have the same result with your commands, but here is what I get when I try to install: |
Here's some more context: pip3 search pytube pip install --upgrade pytube |
Ok, I was able to repro, looking into it now |
All fixed! Updated release to 6.2.2. |
That came through just fine, thanks very much. |
Thanks for reporting! |
Just today it seems Youtube changed it's cypher coz it worked in the morning.
The text was updated successfully, but these errors were encountered: