2011-02-25, 00:10
japzone Wrote:On the Roku the Unofficial Youtube channel has Subtitle support so it proves that the Subs are at least Accessible through the API. Although what format the Subs are using, I don't know. Youtube allows uploading of SRT files so hopefully that's what they Output.
Well I spent some time looking into it and theres plenty of bad news ahead:
Quote:Captions for a video can only be created, retrieved, modified and deleted by the owner of that video. To perform these operations for a video, you must submit authenticated API requests for which the video's owner is the logged-in user. Accordingly, API requests for caption operations must contain a properly formatted Authorization header.taken from:
http://code.google.com/apis/youtube/2.0/...ate_Format
In short the API doesn't expose subtitle streams to anyone else but the videos owner, this means we have to scrape the video page for the feed. While this seems easy enough to do, the format that YouTube provides seems to be proprietary (or some variation of the W3C's timed text, but I didn't spend enough time looking at it to tell whether or not YouTube follows the standard as it seems *a lot* more complex).
Currently this format is unsupported by XBMC, and it's highly unlikely that it will ever be added, as such the plugin will need to do an on the fly conversion to .srt or some other supported format. While this is possible I have yet to figure out how to provide the final subtitle stream to xbmc (but that might be solvable too)
In any case this is a feature that won't make it into the plugin until development on the next beta begins
http://pastebin.com/5HvfFzKb