Skip to content
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

Vevo sig changed again, please update for us! Thanks very much! #1583

Closed
mikeygao opened this issue Oct 9, 2013 · 10 comments
Closed

Vevo sig changed again, please update for us! Thanks very much! #1583

mikeygao opened this issue Oct 9, 2013 · 10 comments

Comments

@mikeygao
Copy link

@mikeygao mikeygao commented Oct 9, 2013

No description provided.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 9, 2013

It's working fine, we now automatically decrypt the signatures, so there's no need to update youtube-dl. Please post the output if you run the command with the --verbose option (like youtube-dl 'http://www.youtube.com/watch?v=1ltcDfZMA3U' --verbose) so that we can see the problem.

@kijalab
Copy link

@kijalab kijalab commented Oct 9, 2013

I think the static way to decrypt the signature is broken. Can you please fix it for us? Thanks.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 9, 2013

@kijalab Can you please post the entire output of youtube-dl when run with the --verbose option? Otherwise, we can not verify that a fix of us actually works.

@mikeygao
Copy link
Author

@mikeygao mikeygao commented Oct 9, 2013

Will the automatic decry update the function " def _static_decrypt_signature
(self, s, video_id, player_url, age_gate)" ?

video cloud player for android
https://play.google.com/store/apps/details?id=net.video2cloud.video2C

On Wed, Oct 9, 2013 at 4:57 AM, Philipp Hagemeister <
notifications@github.com> wrote:

@kijalab https://github.com/kijalab Can you please post the entire
output of youtube-dl when run with the --verbose option? Otherwise, we
can not verify that a fix of us actually works.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1583#issuecomment-25955876
.

@kijalab
Copy link

@kijalab kijalab commented Oct 9, 2013

This video used to work before. Also, in my case, am using your static_decrypt_signature for youtube vevo videos. So, any help in fixing it with the latest signature change will be appreciated.

# ./youtube-dl --verbose http://www.youtube.com/watch?v=HzZ_urpj4As
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?v=HzZ_urpj4As']
[debug] youtube-dl version 2013.10.07
[debug] Python version 2.6.0 - Linux-2.6.32.19-0.3-ec2-i686-with-SuSE-11-i586
[debug] Proxy map: {}
[youtube] Setting language
[youtube] HzZ_urpj4As: Downloading video webpage
[youtube] HzZ_urpj4As: Downloading video info webpage
ERROR: YouTube said: The uploader has not made this video available in your country.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 348, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 117, in extract
    return self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1310, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
ExtractorError: YouTube said: The uploader has not made this video available in your country.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 9, 2013

@mikeygao Sorry, I don't understand what you're saying. Can you elaborate? In any case, the function _static_decrypt_signature is internal (it begins with an underscore), and it's in a non-public class anyways. Therefore, it is subject to change. We plan on removing it. I am not sure why you have linked an android app (with fishy reviews to boot). If that app doesn't work, please create an issue in its bugtracker. If it uses youtube-dl internally, then its author should update the youtube-dl version to any recent one.

@kijalab This error looks completely unrelated to signatures, it happens before signature extraction. Most likely, the video is blocked by YouTube from the country you're requesting it. Can you see it in a browser on the same machine and with the same proxy configuration as youtube-dl? If not, please open a new issue.

Also, you're using 2013.10.07, which includes support for automatic signature extraction, so _static_decrypt_signature should not be used.

I'm closing this issue now since it seems to be the result of a misunderstanding. Feel free to provide a log that shows that signature extraction fails (it almost certainly should throw a 403 error), and we'll reopen it. Thanks!

@phihag phihag closed this Oct 9, 2013
@kijalab
Copy link

@kijalab kijalab commented Oct 9, 2013

@phihag Thanks. Let me explain my situation a little bit in detail. I am extracting the signature from my iPhone app and I am decrypting it in my server using your static_decrypt_signature function (I created a separate python script with just that function to decrypt). Is there a better way to decrypt the signature that I get from my iPhone app in my server? I'll appreciate if you can help.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 9, 2013

(Discussion with @kijalab moved to #1585)

@patrickslin
Copy link
Contributor

@patrickslin patrickslin commented Oct 9, 2013

Here is the new sig len 83 algo, if you need it:

python:
s[:59:-1] + s[0] + s[58:1:-1]

javascript:
s.slice(60).reverse().join('') + s[0] + s.slice(2, 59).reverse().join('')

@phihag
Copy link
Contributor

@phihag phihag commented Oct 10, 2013

[Deleted off-topic posts by @kijalab, @jezcomputer, @dahiyavinod. Please do not post here - that would be a duplicate of #1585]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.