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.
Playlists are already supported. And the XBMC Remote can already call the plugin with the playlist id.

That is, our plugin supports it. I doubt the code to send the playlist id is in the XBMC Remote.
newatv2user Wrote:Hi Tobias

Do you plan to support youtube playlist in the future versions (or is it already supported)? That way we could just pass the playlist id and be done. Thanks.

Hi this has been supported for a while now a command like

Code:
plugin://plugin.video.youtube?action=play_all&playlist=<someplaylist>

you can even start from a specific point in the playlist by doing

Code:
plugin://plugin.video.youtube?action=play_all&playlist=<someplaylist>&videoid=<some_videoid_in_playlist>
TobiasTheCommie Wrote:Well, if you could give me an (xbmc and plugin) debug log i could be 100% certain. right now i'm just at about 95% certain that i'm right. Smile (As i said, things might have changed since last i looked).

I will try it out on Monday and provide the logs. Where is the addon log located? I did not see it in the plugin folder.
JabberwockPL Wrote:I will try it out on Monday and provide the logs. Where is the addon log located? I did not see it in the plugin folder.

Same log. Debug just needs to be enabled both in the plugin, and in XBMC.
does anyone know if it's possible to login with gmail username -the @gmail.com part ?

I've actually managed to forget my old youtube login (password, because user is visible) and when I try and restore this password, it tries to restore my gmail pw.

Reason I ask is because I can't login plugin on OpenElec Eden-pre :|
You you can use your username to login with. I have verified this both in integration tests and manually on my ubuntu machine.
I have problems with youtube videos. When I click on the video does not work!


Code:
15:30:29 T:140509915490048 M:1823559680  NOTICE: -->Python Interpreter Initialized<--
15:30:30 T:140509915490048 M:1823924224  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '0', '?path=/root/search&action=search&search=eclissi+di+cuore&']
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 search: 'eclissi di cuore' - page: '0'
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos?q=eclissi+di+cuore&safeSearch=none&start-index=1&max-results=25
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 _fetchPage ERROR: YouTubeCore::_fetchPage (467) - <urlopen error [Errno 2] temporary failure in name resolution.>
15:30:30 T:140510224091104 M:1823924224   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?path=/root/search&action=search&search=eclissi+di+cuore&
15:30:30 T:140510224091104 M:1823924224   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?path=/root/search&action=search&search=eclissi+di+cuore&) failed

This is the full log file
http://nopaste.info/b74553650c.html
No wonder I couldn't login with my old "original youtube login": http://support.google.com/accounts/bin/a...wer=165556

But it doesn't matter, on Openelec I get a toast saying 'Login failed: False', and here's the log: http://paste.ubuntu.com/773576/


Is there some old cache somewhere which interferes with the login and which I can clear?
pike Wrote:...on Openelec I get a toast saying 'Login failed: False', and here's the log: http://paste.ubuntu.com/773576/

Is there some old cache somewhere which interferes with the login and which I can clear?

First to answer your question, No we don't cache anything with regards to login, whenever it fails, it's because the login process has failed.

I'm getting quite tired of this error...
We've seen this almost since day one of the plugin, and created a trac ticket a long time ago:
http://trac.xbmc.org/ticket/11599

We're working on some code that will give a more meaning full response, but it wont fix the problem you're experiencing, since its basically out of our hands. From your log (and almost 100 other logs we've seen so far):
Code:
T:139740014212864  NOTICE: [YouTube-2.8.0] _fetchPage : 'connecting to server... https://accounts.google.com/ServiceLoginAuth'
T:139740014212864  NOTICE: [YouTube-2.8.0] _fetchPage : 'URLError : <urlopen error _ssl.c:316: Invalid SSL protocol variant specified.>'

Basically whats happening here, is that we're telling python's urllib2 to open the url "https://accounts.google.com/ServiceLoginAuth", and urllib2 is telling us that it doesn't know the "ssl variant" that the page is using. Basically something is wrong with the build of python since its unable to negotiate a proper ssl connecton. Note that the code required for such a connection is only the following 3 lines (very simple):

Code:
    request = urllib2.Request("https://accounts.google.com/ServiceLoginAuth")
    con = urllib2.urlopen(request)            
    result = con.read()


We've got running integration test that perform full login procedures that function perfectly well on "standard" unix python distributions (
seen here )

But for some reason this is only a problem for the xbmc distributed version of python. Personally I can recreate this error with very little effort on my OSX and Windows XBMC systems, even with the latest nightly It only takes a couple of login retries before xbmc's python starts throwing these errors, and the only fix i found is restarting xbmc. I'm guessing that the open ELEC guys in their work to create a reduced XBMC installation probably broke something with regards to the python installation.
1Dan Wrote:I have problems with youtube videos. When I click on the video does not work!


Code:
15:30:29 T:140509915490048 M:1823559680  NOTICE: -->Python Interpreter Initialized<--
15:30:30 T:140509915490048 M:1823924224  NOTICE: YouTube-2.1.3 ARGV: ['plugin://plugin.video.youtube/', '0', '?path=/root/search&action=search&search=eclissi+di+cuore&']
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 search: 'eclissi di cuore' - page: '0'
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 fetching page : http://gdata.youtube.com/feeds/api/videos?q=eclissi+di+cuore&safeSearch=none&start-index=1&max-results=25
15:30:30 T:140509915490048 M:1824051200  NOTICE: YouTube-2.1.3 _fetchPage ERROR: YouTubeCore::_fetchPage (467) - <urlopen error [Errno 2] temporary failure in name resolution.>
15:30:30 T:140510224091104 M:1823924224   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?path=/root/search&action=search&search=eclissi+di+cuore&
15:30:30 T:140510224091104 M:1823924224   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?path=/root/search&action=search&search=eclissi+di+cuore&) failed

This is the full log file
http://nopaste.info/b74553650c.html

I tried to uninstall the plugin and delete the folder in two subdirectories .xbmc, but the problem is not solved: (
1Dan Wrote:I tried to uninstall the plugin and delete the folder in two subdirectories .xbmc, but the problem is not solved: (

Something on your network is blocking the plugin from accessing the internet, and it's messing with its ability to resolve url names. Have you tried disabling your firewall, or removing you network router to get the machine as close to a direct connection as possible?
I looked the new log file and I haven't found ERROR, but the video after the search, still will not open. I don't think that is a firewall issue because run everything on the network, but especially openelec is a live version, with no operating system.

http://paste.ubuntu.com/774183/
Could you please upload the entire log.

As far as i can see the search return 25 videos.
Ok thanks

http://paste.ubuntu.com/774300/

With the research I have no problem, but when I click on a video, nothing happens, not even an error.
As far as i can see XBMC never tries to playback anything, It never asks our plugin to play anything.

You probably need to take an XBMC Debug log to the OpenElec people.