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

Youtube signature length 85 not working... #1457

Closed
wassgha opened this issue Sep 18, 2013 · 4 comments
Closed

Youtube signature length 85 not working... #1457

wassgha opened this issue Sep 18, 2013 · 4 comments

Comments

@wassgha
Copy link

@wassgha wassgha commented Sep 18, 2013

After the last update to the code, 85 length signatures are still not working...

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 19, 2013

Are you sure you are running the latest version (2013.09.17)?, it works on my system.
If you update and still fails, please post the output if you run the same command but adding the --verbose option, otherwise we can't investigate it.

@wassgha
Copy link
Author

@wassgha wassgha commented Sep 19, 2013

Actually I'm not running it on python, I'm using a custom made php version of your code here is my code:
...
elseif (strlen($s) == 85)
$string= substr($s,3,11) . substr($s, 0, 1) . substr($s,12,55) . substr($s, 84, 1) . substr($s,56,84);
...
I don't know if you can help me with that but these 85 caracter signatures aren't working on my php adaption :/

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 19, 2013

The real translation to PHP is $string= substr($s,3,8) . substr($s, 0, 1) . substr($s,12,43) . substr($s, 84, 1) . substr($s,56,28);
In python s[3:11] means the characters between index 3 and 11, not from index 3 and taking 11.

@jaimeMF jaimeMF closed this Sep 19, 2013
@wassgha
Copy link
Author

@wassgha wassgha commented Sep 19, 2013

Thanks :D

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
2 participants
You can’t perform that action at this time.