[RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC

  Thread Rating:
  • 14 Votes - 4.64 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MCipher Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #2071
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...t?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!
(This post was last modified: 2012-05-23 19:30 by MCipher.)
find quote
Freso Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #2072
(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.

find quote
dejavus Offline
Junior Member
Posts: 1
Joined: May 2012
Reputation: 0
Post: #2073
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.
find quote
Lasall Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #2074
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
find quote
xlotlu Offline
Junior Member
Posts: 5
Joined: May 2012
Reputation: 0
Post: #2075
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.
find quote
rupertos Offline
Junior Member
Posts: 22
Joined: Apr 2012
Reputation: 0
Post: #2076
hello

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

how to change that..?
find quote
isilver18 Offline
Junior Member
Posts: 34
Joined: Jun 2005
Reputation: 0
Post: #2077
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.
(This post was last modified: 2012-06-02 02:10 by isilver18.)
find quote
lothinator Offline
Junior Member
Posts: 6
Joined: May 2012
Reputation: 0
Post: #2078
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.
find quote
sobkas Offline
Junior Member
Posts: 2
Joined: May 2011
Reputation: 0
Post: #2079
(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?
find quote
DanLongman Offline
XBMC lover
Posts: 49
Joined: Jun 2011
Reputation: 0
Location: Regina, SK, Canada
Post: #2080
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.
find quote
Post Reply