•   
  • 1
  • 259
  • 260
  • 261(current)
  • 262
  • 263
  • 315
  •   
  Thread Closed
Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only
(2014-01-23, 19:30)torenvalk Wrote:
(2014-01-22, 20:09)nickshe89 Wrote: anyone can fix vevo vids on youtube add-on

The VEVO playback problem has been fixed here:
https://code.google.com/p/youtubexbmc/is...id=95#c195

Download the fixed YouTubePlayer.py and copy it into \addons\plugin.video.youtube\

I try plugin version 4.4.4. and plugin version 4.4.6 #195 resolve, but vevo still don't work, in version 4.4.6 can't play any video - error plugin.youtube.player. Any suggestions ?
Cant get youtube login to work, It never worked for me, I made an debug log. I'm using xbmc 13 Gotham and installed youtube plugin from reppo.

here is the debug log http://pastebin.com/NV0cJnmc

Hope some1 can help me out and get this fiexed atleast.
I've given up using the Youtube Plugin for anything but casual Youtube Searching/Watching because of the Login issues. Instead I've gone the ChromeLauncher route.

Basically you just get the Chrome Launcher plugin. It comes with Youtube Leanback site already setup. Basically Youtube Leanback is Youtube's Web TV interface.

Features:
-Fullscreen
-It's navigable completely via the keyboard so any Control method that emulates the keyboard will work with it, or you can control it via the Android/iOS Youtube apps just like a Chromecast(Though you might need to use the Pairing menu in Youtube app settings)
-As long as a video isn't specifically set to not play on TV by it's uploader, most videos should play.
-ClosedCaptions/Subtitles Work and are customizable
-You can log-in using any Youtube Profile by going to http://youtube.com/activate and entering the code from the Youtube Leanback settings menu.
-You can Queue up videos via the Youtube app.

Cons:
-Video Playback isn't integrated with XBMC, so you can't Queue Youtube videos with videos from other sources
-Can't be controlled via the XBMC Remote app
-Have to use ALT+F4 or CTRL+W to quit Youtube Leanback(workaround below)
-Needs Google Chrome Installed(workaround below)
-Launches on Primary monitor(workaround below)

Workarounds:
1. If you don't want to install Google Chrome on Windows, here's a workaround:
-Download Google Chrome Portable from PortableApps.com
-Run the Installer and choose where you want Google Chrome Portable extracted to(as long as you can find the folder from XBMC).
-Open the Chrome Launcher settings in XBMC(Right-Click on it or press C)
-Enable "Use custom Chrome/script path"
-Select the next option and navigate to the GoogleChromePortable folder and select "GoogleChromePortable.exe"
-(OPTIONAL)"Use own user profile" Select this if you want ChromeLauncher to generate it's own browser profile instead of using Chrome's default one.
-Press OK, and you're ready to watch Youtube using Portable Chrome

2. If you want to launch ChromeLauncher sites(ie: Youtube Leanback) on a second monitor instead of your primary one here's how:
-Open ChromeLauncher and select "Add Website"
-Enter "Windowed" as the Name
-Enter "http://google.com" as the URL
-Enter "yes" for Stop XBMC Playback
-Enter "no" for Use Kiosk Mode
-Select "Windowed" and a Google Chrome window will open
-Drag the Chrome window to your desired monitor and "Maximize" it so it fills the screen
-Now close the Chrome window
-That's it, Select "[Youtube Leanback]" and it should launch on your Second Monitor.

3. If you want to close Youtube Leanback using a simple key like Q then here's how:
-First open the "Windowed" option in ChromeLauncher that we made in Workaround 2
-In the resulting Chrome Window install this Chrome Extension - Shortcut Manager
-Now open Shortcut Manager's Options window using this LINK or by going to the Chrome Extension page.
-Now click "Import Settings" on the Left-side, then paste the following code in the box=
Code:
// ==UserScript==
// @ShortcutManager
// @name Close Youtube Leanback with Q
// @namespace bsqPQJ5Cp8iM
// @key q
// @include https://*.youtube.com/leanback*
// @include https://*.youtube.com/tv*
// @include https://*.youtube.com/tv#/*
// @execute CloseTab([])
// ==/UserScript==
-Click "Done" and Then "OK"
-Now close the Chrome window and launch "[Youtube Leanback]" from ChromeLauncher, it should open Fullscreen
-Now press 'Q' on your keyboard and Youtube should close and you should be back in XBMC Wink
-(NOTE)By Default the Shortcut will only apply to the Youtube Leanback site, but you can easily add more sites or apply the shortcut to All sites if you want. Just remember that you won't be able to type anything that uses Q, since that'll close the window. You can replace Q with any key/key-combo you want, just remember that Youtube Leanback's controls use Esc, Space, ArrowKeys, and Enter. Perhaps the DELETE key would be a good choice?

I hope you find this post useful Smile
When i try to play videos today they are failing, only certain videos though.

I believe i got everything i needed to, if not i can upload the whole log. You can see I search for alt-j and try to play a song and it fails during the load (breezeblocks, if anyone cares), but if i play another song of theirs it plays fine. Its randomly failing with songs, last night it worked fine

http://pastebin.com/rc9fpiG8
Thumbs Up 
(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 )
Thank you Berre got youtube plugin working in raspberry pi for now =)
I was running openelec before on the pi and never could get the closed captions to work with this plugin. Now i tried raspbmc, installed directly this plugin tried a couple of movies with closed captions and all of them worked directly without any problems.

So what is the difference with the xbmc via openelec and xbmc via raspbmc ??

I would like to get it working on openelec, because raspbmc is slow compare to openelec.

Best regards,

reggert32
(2014-02-06, 01:03)abc123 Wrote: When i try to play videos today they are failing, only certain videos though.

I believe i got everything i needed to, if not i can upload the whole log. You can see I search for alt-j and try to play a song and it fails during the load (breezeblocks, if anyone cares), but if i play another song of theirs it plays fine. Its randomly failing with songs, last night it worked fine

http://pastebin.com/rc9fpiG8

I was having similar issues and the following linked helped....

https://code.google.com/p/youtubexbmc/is...tail?id=95

The file in post #195 solved the first issue which was a signature issue. I had this applied for a while with no issues. However, in the last couple of days issues started to appear again. Anyway before I got a chance to look into properly I checked the thread again and the file in post #217 fixed this new issue.

The file in #217 includes the changes from those in #195.

Hope that helps.
(2014-02-05, 11:30)golin Wrote:
(2014-01-23, 19:30)torenvalk Wrote:
(2014-01-22, 20:09)nickshe89 Wrote: anyone can fix vevo vids on youtube add-on

The VEVO playback problem has been fixed here:
https://code.google.com/p/youtubexbmc/is...id=95#c195

Download the fixed YouTubePlayer.py and copy it into \addons\plugin.video.youtube\

I try plugin version 4.4.4. and plugin version 4.4.6 #195 resolve, but vevo still don't work, in version 4.4.6 can't play any video - error plugin.youtube.player. Any suggestions ?
Ok, It work's from https://code.google.com/p/youtubexbmc/is...id=95#c217

I download the youtubeplayer.py
Thanks Berre, you're magician. It works perfectly.

I've used clean install of youtube addon (uninstall youtube and remove all userdata files for youtube then install again).
Then I've edited new settings.xml as per Berre manual.
It didn't worked for me when used current installed Youtube version of settings.xml.

Vevo solved easily via https://code.google.com/p/youtubexbmc/is...id=95#c217 and downloading youtubeplayer.py
I'm using (XBMCSetup-20140207-a748ec4-master) with Youtube 4.4.6
I'm from Portugal and I'm getting this error:
http://xbmclogs.com/show.php?id=126475

This is because in get_url I get this "u'signIn': u'Iniciar sess\xe3o'"

the character is an "ã"
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.

It may or may not be related to a Common Plugin script update yesterday, but I've rolled that back to no effect.
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.
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.
@vojtishek: wow, you are AWESOME! I literally just removed username, password from my settings.xml as you suggested. (I don't like how the login credentials are saved without encryption anyways)
now every youtube video loads up extremely fast. before this little patch it took nearly 10 seconds, now it takes 1 or 2 seconds until the playback starts!
this made my day :)
HTPC LibreELEC 9.0 - Xperience1080+
RPi3 LibreELEC Milhouse build - Arctic Zephyr
  •   
  • 1
  • 259
  • 260
  • 261(current)
  • 262
  • 263
  • 315
  •   
  Thread Closed
 
Thread Rating:
  • 28 Vote(s) - 4.14 Average



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