jackun / VLCTube

The Unlicense
15 stars 4 forks source link

Lots of videos have stopped working #12

Closed ghost closed 10 years ago

ghost commented 10 years ago

So, yesterday this quit working for me on a ton of videos, here's one for example: https://www.youtube.com/watch?v=8RxInn7tkRQ#vlc-error. I'm going to try to figure it out, but I don't have much experience with userscripts. I do know the problem is pareUrlMap as the URL for downloading are erroneous, and I do know this userscript for parsing the URL works: https://github.com/gantt/downloadyoutube/blob/master/script/yt.user.js . So the answer to our problems lies within it.

ghost commented 10 years ago

You guys fixed it. Thanks. What does this javascript code mean?

m = str.match(/(\w+):function(\w+,\w+){var\s+c=.*?length/);

Can you put it in English?

ghost commented 10 years ago

I figured it out, for example, it matches the string 'foo:function(bar,kel){var c="bravo".length;}'

jackun commented 10 years ago

YT messes with the HTML5 player 'signature' deciphering code. 'k, until next time :P