• 1
  • 261
  • 262
  • 263(current)
  • 264
  • 265
  • 315
Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only
Hi,

I've just applied the procedure by Berre (big thanks) and finally managed to login and see the directory tree, but I still have problem with watching any youtube content. Actually it plays nothing returning script faild message when streaming video. Could somebody help me? My log file is here: http://pastebin.com/hYRfW566

mgradz
(2014-02-14, 14:34)mgradz Wrote: Hi,

I've just applied the procedure by Berre (big thanks) and finally managed to login and see the directory tree, but I still have problem with watching any youtube content. Actually it plays nothing returning script faild message when streaming video. Could somebody help me? My log file is here: http://pastebin.com/hYRfW566

mgradz

Remove username from youtube plugin properties, reboot xbmc and you're good to go.

(2014-02-14, 12:55)kanepa Wrote: I also can not seem to be able to play in 1080p in XBMC youtube, only 720p. What is the reason for this?
even if I select the default settings 1080p 720p charge me, if I choose neither choice appears only as 1080p.
then I check on the web if there are any files in 1080p format. why? is a problem of tag?

Here's the reason :

http://googlesystem.blogspot.pt/2013/10/...reams.html
Vonpire, thanks a lot. It works!!! Although I cannot definitely understand the logic of this. Smile
(2014-02-14, 15:48)Vonpire Wrote: Here's the reason :

http://googlesystem.blogspot.pt/2013/10/...reams.html

thanks a lot Sad
(2014-02-14, 18:09)mgradz Wrote: Vonpire, thanks a lot. It works!!! Although I cannot definitely understand the logic of this. Smile

The logic is :

You're authenticating by token so you don't need username.

If you put username whenever you try to play a video it will try to authenticate using that username and not token hence it fails, because of the very known "normal" login problem.
I thought I would quantify the list loading speed of this addon compared with others on the Raspberry Pi.

Image

Code:
Comparison of list load time (RPi OPENELEC Gotham r17666 turbo overclocked)

Seconds:

Video addons:
Youtube (logged out)
Vimeo (logged out)
Reddit TV
Dailymotion
Youtube Billboard
Youtube Channels
Yahoo! Screen

50 list items
100 list items

Skin: Amber
Common Plugin Cache: Autostart = true


As you can see this Youtube addon is much slower at showing lists than other addons by as much as three times. The Youtube Channels addon can provide the same channel lists in a fraction of the time. The Vimeo addon is also quite slow.

Youtube is arguably the most important XBMC video addon so it is disappointing to see these performance problems.
(2014-02-14, 05:41)Vonpire Wrote:
(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. Nod 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 Confused )

IT WORKS!!! Finally I am able to use youtube on my XBMC. Now it's complete!

Thank you Berre, really, I was looking for this for ages. This should be sticky Everywhere around the forum.

Anyway Just one thing.

The python web console you refered isn't working so anyone experiencing that issue use this one instead : http://repl.it/languages/Python

And don't forget to disable username login in settings (leave it blank)

And again Thank you a lot!

One more question.

I can't seem to be able to play in 1080p in xbmc youtube, only 720p . Any reason to this? (yes in settings I have 1080p as max possible and I have a 1080p display) Smile

Don't know what you are talking about - i have no authentication problem at all , all my lists favorites and history in place.
I'm getting error playing youtube videos from computer (XBMC chrom extention) to XBMC.
It's saying one or more items failed to play. Check log for details.
(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.

that python link is dead. I will wait for the plugin to be updated.

youtube was working for me great. then after resaving the settings, i got the cannot log in error. Sad

Works fine on my other boxes, so do not touch your plugin settings if it works now.
Theater: The PS4/XBONE killer running Kodi 17.3 3D Movie Box: Raspberry Pi running LibreElec 8.0 Alpha BROKEN Family Room: "A6-Pack" running Kodi 17.3 Whole House: FireTV running Kodi 17.3
It was working yesterday.
Here is an alternative: http://repl.it/languages/Python
thank you berre, this works! a solution at last!
(2014-02-14, 05:41)Vonpire Wrote:
(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. Nod 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 Confused )

IT WORKS!!! Finally I am able to use youtube on my XBMC. Now it's complete!

Thank you Berre, really, I was looking for this for ages. This should be sticky Everywhere around the forum.

Anyway Just one thing.

The python web console you refered isn't working so anyone experiencing that issue use this one instead : http://repl.it/languages/Python


And don't forget to disable username login in settings (leave it blank)

And again Thank you a lot!

One more question.

I can't seem to be able to play in 1080p in xbmc youtube, only 720p . Any reason to this? (yes in settings I have 1080p as max possible and I have a 1080p display) Smile

Look in bold Wink
Thank you, Berre. At last, something that actually works. Hopefully a new update will not mess it up. Smile
Thanks a lot for this... I was about to pull my hair out trying to log into YouTube on OpenElec (RaspberryPi). But VEVO videos are still giving script errors whenever I try to play them. I also keep getting the setting dialog again and again even when there is no username/password in the settings file. Any ideas why this might be happening?
Don't know what's changed but when I enter the code into the html page I've created, it goes to https://accounts.google.com/o/oauth2/token I get a "HTTP 400 - Bad Request" error.

When I open the html page, IE tells me that Active Content is blocked but I clicked on Allow Content to bypass the block.
  • 1
  • 261
  • 262
  • 263(current)
  • 264
  • 265
  • 315

Logout Mark Read Team Forum Stats Members Help
[depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only28