The third problem is the hard one that I've been unable to solve so
far.

On all the videos I've tried, youtube is using a new signature method.
Previously the code would look for a parameter 'sig=' and in the
downloaded video page and turn that into 'signature=' when requesting
the video stream. The current video pages don't include any 'sig='
parameter in the data for videos I've tried, instead providing a 's='
parameter. Unfortunately the content in this parameter appears to be
obfuscated using an ever changing algorithm.

The youtube-dl program has support for unobfuscating this, but it relies
on them actually interpreting the javascript code for the video player.
This is non-trivial - someone is going to have to write a mini
javascript interpretor for this the squeezebox youtube plugin to be able
todo the same if we want that approach :-(

A second alternative is to make use of an online webservice for
unobfuscating the signature. http://api.gitnol.com/  is one such
webservice, but it requires that every user sign up to get their own API
key for their IP address, so it isn't something that would "just work"
out of the box - it'd require users to sign up themselves.

I've run out of time to investigate solving this problem myself, but
maybe this info is useful to someone else who can solve what is
hopefully the final piece of the puzzle...


------------------------------------------------------------------------
berrange's Profile: http://forums.slimdevices.com/member.php?userid=64173
View this thread: http://forums.slimdevices.com/showthread.php?t=87731

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to