Kodi Community Forum

Full Version: [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You may also be blocked due to the international origin of the login. This is part of Google's normal security process. In my case, apparently the routing goes through Europe and triggers a block by Google. Not sure why it's routed that way, but that was a big part of my problem. Haven't tried again since.
(2014-01-24, 05:06)ranger0293 Wrote: [ -> ]
(2014-01-22, 22:47)ranger0293 Wrote: [ -> ]I'm having issues logging in as well. I attempted the YouTubeLogin.py edits from a few pages ago, but no luck.

I get prompted for the 6 digit password. I enter it, then the plugin immediately returns an error.

15:33:47 T:2883404896 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.youtube/default.py", line 111, in <module>
File "/storage/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 75, in login
result, status = self.authorize()
File "/storage/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 85, in authorize
(result, status) = self._httpLogin({"new": "true"})
File "/storage/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 239, in _httpLogin
fetch_options = {"link": new_part[0].replace("&amp;", "&"), "url_data": url_data, "referer": ret["location"]}
IndexError: list index out of range
-->End of Python script error report<--

Can anyone help with this?

I get the same error. I also tried creating an application specific password to avoid the 2 factor login, but the log shows the same error.
Everything worked fine until two days ago.
I'm running the latest Gotham alpha 11.
(2014-01-22, 10:32)o-m-e-n Wrote: [ -> ]Hi.
After couple of hours spent on looking for solution, learning python and testing I finally found a fix for Yotube subscriptions not showing up if your primary account containing this data is yt account and not g+ account. Generally my fix allows you to choose which one you want to use.

Here is what to do:

File YouTubeFeeds.py around line 114:

url = url % "default"

if (self.settings.getSetting("use_yt_username") == "true"):
    url = url % self.settings.getSetting("yt_username")
    url = url % "default"

File resources/settings.xml after line 6:

<setting id="user_password" type="text" option="hidden" label="30201" enable="!eq(-1,)" default="" />

<setting id="use_yt_username" type="bool" label="30289" default="false" />
<setting id="yt_username" type="text" label="30290" enable="!eq(-1,false)" />

Finally in file resources/language/<your language>/strings.xml after line 154:
<string id="30288">Show YouTube History</string>

Insert (translated to language set in your xbmc settings):
<string id="30289">Use YouTube Username</string>
<string id="30290">YouTube Username</string>

You will find necessary settings in plugin's configuration.

I hope this will also work for you.

I tried this but I get a script failure error after trying to run the addon.
xbmc log says it pertains to line 115 in YouTubeFeeds.py. After removing that file completely I receive no script errors but login does not work.
Cannot login to youtube

Here is my log file, can anyone tell me what the problem is -

Anybody able to get the youtube plugin to play 1080p. The max I can play is only 720p.
Can't login using my app login or my main login. All I'm getting is "login failed false"
plugin works great with ordinary video but there is an issue with LIVE stream.
by default quality of LIVE stream video is the most high. setting (Ask/SD/720p/1080p) doesn't work in this case.
please fix it.

i just recognized today that when i play youtube videos the sound is bad at higher volume in the video. its a sizzling noise.... just like here: http://www.youtube.com/watch?v=H-ZKdWCEhbI

what do you need as information to help me? i play the sound to the avr via SPIDF (optical)...

With normal videos or music everything is fine, no crackling sound!!

warmest regards

asus p5w dh deluxe
4GB DDR2 667
80GB Intel SSD
Technisat Cablestar HD2
Nvidia GT120
Denon X1000 Avr
Does this add on takes any space in my hard drive and saves the videos i watch or it just streams the trailers without taking any space in my HDD ?? Thanks in advance for the help[/align]
YES! Finally figured my issue out. Posting it here so hopefully this will help some others.
What I did was follow the post earlier in the thread that said to edit YouTubeLogin.py
Quote:nick = self.common.parseDOM(ret["content"], "p", attrs={"class": "masthead-expanded-acct-sw-id2"})
Replace that with: nick = self.common.parseDOM(ret["content"], "span", attrs={"id": "yt-masthead-user-displayname"})

Then I went to /userdata/addon_data/plugin.video.youtube/settings.xml and removed the

<setting id="oauth2_access_token" value="xxxx" />
<setting id="oauth2_expires_at" value="xxx" />
<setting id="oauth2_refresh_token" value="xxx" />

Logging back in with my channel ID and third party password fixed everything.

I assume that also uninstalling and removing /userdata/addon_data/plugin.video.youtube as well as /addons/plugin.video.youtube and reinstalling then doing the edit would do the trick as well.
For those of you struggling after applying enigma83's fix, I tried the following and it worked for me! Not sure if it will help anyone else.

1) Apply the fix
2) Delete youtube folder in userdata folder
3) Log into youtube using a browser of your choice and using the same username as on xbmc (mine is @pages.plusgoogle.com)
4) Top right hand corner, click settings under google account
5) On that screen click the blue circle icon in the top right hand corner and click account
6) Click security and then view all under account permissions
7) Revoke access to the youtube xbmc plugin
8) Try logging in again in XBMC

Hope that helps someone
i've tried lhw455 and MorningWood's suggestions but still no luck.
(2014-01-26, 20:48)Berre Wrote: [ -> ]i've tried lhw455 and MorningWood's suggestions but still no luck.

Can you give some more info? Are you using your account login info or channel info? third party password set up?
Just to add, I was having troubles with the login to youtube, even after applying enigma83's fix and the above worked for me. Not sure if it was a coincidence, but I tried several times deleting plugin, userdata folder, etc to no avail.
Hi, I don't have any account ending with "@pages.plusgoogle.com" and I have literally tried everything from the past 30-40 pages of this thread. No way I'm able to sign in to youtube with any of my XBMC instances.

Please help!