2014-08-19, 07:41
I started to do some hacking of the plugin to see if I could get purchases working.
The youtube v2 and v3 apis don't actually have any purchases methods that I can see.
However I was able to hack in the play list id for the purchase to replace the 'likes' one and I can see the list of videos. This was just a quick hack to see how far I can get. I figure perhaps we can scrape the https://www.youtube.com/purchases to get a list of the play lists.
I can't get very far in playing the videos because the youtube/video.pl getVideoStreamInfosPerPageView function used to determine the appropriate stream does not get the page with an authenticated user, so the stream info is unavailable. So I figure I need to add a login call first to the opener so that all future open calls will be authenticated.
I know that even if I can get past that I won't be able to play it because of DRM, but it would be cool to be able to configure a browser event for these DRM protected videos and use the same mechanism as for netflixbmc.
I am going to see if I can figure out what I need to pass to the opener to login to youtube first.
I think the netflix plugin does this for netflix using a cookie handler.
The youtube v2 and v3 apis don't actually have any purchases methods that I can see.
However I was able to hack in the play list id for the purchase to replace the 'likes' one and I can see the list of videos. This was just a quick hack to see how far I can get. I figure perhaps we can scrape the https://www.youtube.com/purchases to get a list of the play lists.
I can't get very far in playing the videos because the youtube/video.pl getVideoStreamInfosPerPageView function used to determine the appropriate stream does not get the page with an authenticated user, so the stream info is unavailable. So I figure I need to add a login call first to the opener so that all future open calls will be authenticated.
I know that even if I can get past that I won't be able to play it because of DRM, but it would be cool to be able to configure a browser event for these DRM protected videos and use the same mechanism as for netflixbmc.
I am going to see if I can figure out what I need to pass to the opener to login to youtube first.
I think the netflix plugin does this for netflix using a cookie handler.