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

updateDecoder no longer works #158

Closed
lechium opened this issue Dec 19, 2015 · 2 comments
Closed

updateDecoder no longer works #158

lechium opened this issue Dec 19, 2015 · 2 comments

Comments

@lechium
Copy link

@lechium lechium commented Dec 19, 2015

there is a new base.js file and the updateDecoder function in Youtube.js killer dies on this line specifically

var index = xhr2.responseText.indexOf(";var " + /^[$_A-Za-z0-9]+/.exec(match[1])[0] + "={"); with this error

[Error] TypeError: null is not an object (evaluating '/^[$_A-Za-z0-9]+/.exec(match[1])')
(anonymous function)

the new base.js file is here http://s.ytimg.com/yts/jsbin/player-en_US-vflXJM_5_/base.js

@hoyois
Copy link
Owner

@hoyois hoyois commented Dec 19, 2015

Already fixed here: https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTube.js
BTW, this variant is immune to these changes: https://raw.githubusercontent.com/hoyois/plugin-to-html5/master/YouTubeXHR.js (although it has other disadvantages).

@hoyois
Copy link
Owner

@hoyois hoyois commented Dec 22, 2015

Fixed in v3.2.

@hoyois hoyois closed this Dec 22, 2015
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.