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.
When getting the plugin from the official XBMC.org repository, I get 2.1.4 as well. Please check if there is something wrong with the repository as it delivers this old version as current.

I have login issues as well including errors looking exactly the same as posted above. The debug log says, the plugin version is 2.1.4.

The code-website shows only deprecated versions: http://code.google.com/p/youtubexbmc/dow...st?can=1&q=
Which one to choose for manual install?


EDIT: Sorry, was my fault - today, I got an automatic update to 2.9.2 and it works like a charm!
(2012-03-09, 12:03)TobiasTheCommie Wrote: [ -> ]To all of you having problems with the downloader. Try deleting your ~/.xbmc/userdata/Databases/commoncache.db (look in the wiki for paths on OSX/Windows/iOS) and restart xbmc.
Worked for me. (Debug log)

(2012-05-15, 19:58)iANGELgr Wrote: [ -> ]why the plugin dont download the videos from youtube to my pc?
Creating a Usefull Debug Log (sic)
But - see the quote above yours first though.

Hi All,

I have installed xbmc 11 and also the youtube plugin version 2.9.2 but I have not been able to play any youtube video at all. I get the error message "Playback Failed" dialog box. I have unstall and re-install

MY debug log is located below on pastebin.

http://pastebin.com/C7j3Bf8w

Any help will be appreciated.
I am not able to playback videos as well. I just switched to windows, as it doesn't work under Linux (and other things as well) but the problem remains. :/

http://pastebin.com/igavjUv9
Hi, I get this error trying to login: http://pastebin.com/cMUk8EJU

I tried to figure out what's happening there, and here's the traceback:
Code:
Traceback (most recent call last):

  File "/home/xbmc/.xbmc/addons/plugin.video.youtube/YouTubeCore.py", line 467, in _fetchPage
    con = urllib2.urlopen(request)

  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)

  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)

  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)

  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)

  File "/usr/lib/python2.7/urllib2.py", line 1215, in https_open
    return self.do_open(httplib.HTTPSConnection, req)

  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)

URLError: <urlopen error [Errno 0] Error>

That line in urllib2.py goes:
Code:
except socket.error, err: # XXX what error?
            h.close()
            raise URLError(err)

So it's a socket error with errno 0... Really helpful.
Now this part is really baffling: I tried to reproduce the error manually:
Code:
>>> from urllib2 import Request, urlopen
>>> r = Request('https://accounts.google.com/ServiceLogin?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dheader%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252F&hl=en_US&ltmpl=sso')
>>> r.add_header('Referer', 'http://www.youtube.com/')
>>> r.add_header('Cookie', 'PREF=f1=50000000&hl=en;')
>>> r.add_header('User-agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8')
>>> c=urlopen(r)
>>> c
<addinfourl at 3069986412L whose fp = <socket._fileobject object at 0xb6fa78ec>>
>>> c.info()
<httplib.HTTPMessage instance at 0xb6fc464c>
>>> c.read()
'... etc.'

It works. On the same machine, same python interpreter, even same user, that code works just fine. But under xbmc it fails. It's absolutely mystifying.

This started recently, with no reason whatsoever as far as I can tell. Maybe someone has a better idea than me what might be wrong.

hello

i want to have automatic viewtype Shift after every search.. but I have wall instead...

how to change that..?
I have not been able to log into Youtube for months now from either of my 2 computers or my atv1. The reason seems to be because I am using the advancedsettings.xml file. When I turn it off I can load youtube without any trouble.

Advancedsettings.xml file

Quote:<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.100.112</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
<name>xbmc_video</name>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.100.112</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>

<pathsubstitution>

<substitute>
<from>special://masterprofile/sources.xml</from>
<to>SMB://server/Documents/Data/xbmc_files/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/addon_data/</from>
<to>SMB://server/Documents/Data/xbmc_files/dharma_addon_data/</to>
</substitute>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>SMB://server/Documents/Data/xbmc_files/thumbnails/</to>
</substitute>

</pathsubstitution>
</advancedsettings>

I have deleted the folder \\server\Documents\Data\xbmc_files\dharma_addon_data\plugin.video.youtube. Then when I try and use plugin it gets stuck on loading forever. So I go into the settings and set them up. Add my username/password and keep the reset as default. Then when I save settings I get an error immediately as if it can't even find the settings folder. I have confirmed that it recreates the folder plugin.video.youtube/ and puts a settings folder under it with my username/password. I have enabled debug logging in the youtube app but don't know where to find the log.

You can find the xbmc.log info at http://pastebin.com/AzaiUXZf. I think it contains all the information in youtube error that is needed. I have even gone as far as to remove the add on and master profile source from advanced settings file with no luck.

Edit: When I removed master profile and add-on source it loaded but took forever to load. But at least it loaded.
I was getting the script error trying to run YouTube...

What fixed it for me was to uninstall the YouTube addon itself from the settings menu, and then reinstall it. The version number did not change, but it now works.

Appears there was a dependency of the file downloader that was not satisfied, which reinstalling YouTube managed to fix.
(2012-05-31, 20:11)xlotlu Wrote: [ -> ]It works. On the same machine, same python interpreter, even same user, that code works just fine. But under xbmc it fails. It's absolutely mystifying.

This started recently, with no reason whatsoever as far as I can tell. Maybe someone has a better idea than me what might be wrong.
I have the same problem. I also straced both python interpreter and xbmc:
I have used "special" script to automatically fetch several pages.
In this example, script connects to https://paypal.com (using urllib2)

python:
http://pastebin.com/LDg0mha9
xbmc:
http://pastebin.com/XyJL6DWf

One difference that might be important:
python:
Code:
15013 close(3)                          = 0
15013 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
15013 connect(3, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("173.0.84.35")}, 16) = 0
15013 getpeername(3, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("173.0.84.35")}, [16]) = 0

xbmc:
Code:
14998 close(28)                         = 0
14998 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 28
14998 connect(28, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("173.0.88.35")}, 16 <unfinished ...>
14934 <... futex resumed> )             = -1 ETIMEDOUT (Connection timed out)
14934 futex(0x7f121412e238, FUTEX_WAKE_PRIVATE, 1) = 0
14934 read(23, 0x7fffbb05a600, 4112)    = -1 EAGAIN (Resource temporarily unavailable)
14934 read(22, 0x7f122c98c000, 4096)    = -1 EAGAIN (Resource temporarily unavailable)

There is a little time out.
Can someone tell, why it's there?

I have tested also pycurl, and it worked in python interpreter and xbmc(paypal.com have some unrelated problem)
It might be urllib2 problem. Maybe threading.
Does urllib2 is thread safe?
I am not able to log into addon.
On both my XBMCbuntu install and my Win 7 install, Both Eden final.

Log from 'nix:
http://pastebin.com/JwF8fs9n

Help Please.

Just trys to log in and than says: Login Failed/Login Failed

I know I am using proper credentials.

Thanks for any help.
/Bump

Still not able to log in, Happens on all my XBMC installs. Win7, Win8, XBMCbuntu
Followed login troubleshoot guide no such luck:
Here is another log this time with Addon debug enabled:
http://pastebin.com/v8RZyDE4
I can confirm the same problem with V2.9.2 on my AppleTV2 running XBMC.

Login doesn't work, and also I'm not able to choose the download-location Confused
Hi!
I can't login and get "login failed"
ubuntu 12.04, xbmc 11.0, YouTube addon:2.9.2, log
I tried with 2-step verification and without 2-step verification.

ps sorry for my bad English )= and thanks for your answers
+1 on the login issues.. Sad
+1 on the login issues.. Sad
Cant login in xp or 10.04 or 11.04 mythbuntu
Whats going on?
Has it worked in the past?.
I have never had a gmail account so havent tried... but now I have an account and playlists and want to use xbmc and am lost...