2014-02-09, 01:32
Vbaros and Freem@n: Thanks for the tip! That completely removed the delay, youtube works like it used to several months ago. Awesome!
(2014-02-07, 21:54)rodalpho Wrote: Everything is very slow with the Youtube plugin these days, but I haven't noticed any degradation in the past day or two.
My main complaint is when trying to play a video, there's a 10-15s pause before it pops up the resolution selection box. Super annoying. I assume it's google's fault.
(2014-02-09, 11:16)freem@n Wrote: @rodalpho this should be new default setting to remove delay in general, agree?Well sure, if it's actually a setting and not a remnant of the configuration in a previous non-OAuth version causing the problem. Or it could be the new script we downloaded from google code, or a combination of the two. Whatever the cause, the youtube plugin would certainly benefit from more active maintenance.
(2014-02-07, 20:32)wmansir Wrote: Has anyone noticed an issue the last day or so where getting video list results ("My subscriptions", recommendations, new or individual sub video list) takes much longer? Normally the "working" popup only takes 3-5 seconds, now it's taking 20+ seconds to move between those menus.
(2014-02-08, 09:25)vbaros Wrote: I had the same problem with big timeouts after selecting videos. Than I downloaded the fixed python script from above and did one more thing. I erased username and password from settings.XML of YouTube plugin.
One more thing that maybe helped is when I did the Berre method I didn't do the last step of entering the token timeout.
For me the stream opens in about 3 seconds every time.
(2014-02-06, 05:21)3CupsOfCoffee Wrote:(2014-01-28, 20:58)Berre Wrote: I finally got the plugin to work again, by manually authenticating it, and writing the authentication token to the settings file.
My solution isn't easy, but i'll try to explain it.
1. open the following url to authenticate the youtube plugin with your google account:
https://accounts.google.com/o/oauth2/aut..._type=code
This will send you to a page which gives you an authentication code.
2. Create an HTML file with the following contents, and open it in a browser:
http://pastebin.com/fdH9xJF7
3. paste the code from step 1 in the code field and click submit
This should give you a result like this:
{
"access_token" : "A long cryptic phrase",
"token_type" : "Bearer",
"expires_in" : 3600,
"refresh_token" : "Another cryptic phrase"
}
4. open the settings.xml file in your "userdata\addon_data\plugin.video.youtube" folder
find the oauth2_access_token setting and copy the access_token phrase from step 3 to the value field
find the oauth2_refresh_token setting and copy the refresh_token phrase from step 3 to the value field
for the oauth2_expires_at setting see step 5
5. Go to http://pythonwebconsole.thomnichols.org/ and run the following script
--------------------------------
import time
print "time.time(): %f " % time.time()
---------------------------------
This will output something like:
time.time(): 1390933738.478000
add 3600 to that number, eg. 1390937338.478000
paste that number in the value field of the oauth2_expires_at setting.
6. Save the settings.xml file
7. the plugin should now work... it did for me.
This should be on every page. It works.
If you use 2 step auth to log in to youtube, delete your credentials (user/pass) from the settings file. (Or else you will get verification text messages every time you play a video )