Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Mixcloud failed to parse json #13867
Comments
|
Probably connected with this js code that decrypt m-play-info contains function v(e, t) {
var n, o, r = "pleasedontdownloadourmusictheartistswontgetpaid", i = r.length, a = 0, l = [];
for (!t && f.player.value && (r = f.player.value,
i = r.length),
o = atob(e),
n = o.length; n > a; a++)
l[a] = o.charCodeAt(a) ^ r.charCodeAt(a % i);
var c = String.fromCharCode.apply(String, l);
try {
return JSON.parse(c)
} catch (s) {
if (t)
throw s;
return v(e, !0)
} |
|
The key [UPDATE] [UPDATE] |
|
It works only in browser for me. I run youtube-dl in a debugger and got wrongly decrypted string but code seems to be ok |
|
[UPDATE] |
|
Test passed
New to github, need some help about how to make a pull request |
|
What value does the key value have for you? |
|
It's a string |
|
Thanks - yep saw it on the fix. Good work! |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.08.06. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Log
Description of your issue, suggested solution and other information
When downloading from Mixcloud json parser error occurs