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.
Robotica Wrote:Any change this plugin is working on a XBOX? Or could be reworked a little to work?

From the homepage

"XBMC4XBOX users need the latest xbmcsvn.com or t3ch svn build"

Though i'm not sure if it has been tried.

But if you have either of those builds, give it a go. And please report back.
no, it won't work on xbox. xbox doesn't have the add-ons system and i doubt it ever will.
I guess that answers that.
i like the sound of this plugin so I installed it to see how it performed. However, after I start the plugin i get the settings screen where I can input my username and password and whatnot. Once I hit ok, it says that youtube beta is loading directory items, and it will sit there for a minute, and then xbmc will tell me that the script failed.

I looked through the debug log and saw that the youtube login was failing, so I checked my username and password. I change my username from feerlessleadr to [email protected] (since that is what I use to login to youtube with) and still get the script failed. Here are the 2 debug logs.

This one is my initial error:

http://pastebin.com/sZ44x7MW

Here is the one with my changed username:

http://pastebin.com/d7a6ZaVv

One thing to note is that everytime I try to access the youtube plugin, I get the settings screen. I'm also not sure if it makes a difference, but I originally just copied the plugin.video.youtube.beta into the \xbmc\addons folder. When the plugin failed, I then deleted that folder and then installed the plugin from the zip file through the addon manager. I had originally input all of my login information when I copied the plugin folder to the addons folder, but even when I deleted that folder and installed from zip, my login information was still available, which I assume was stored in the \xbmc\portable data\plugin folder.
poserdonut Wrote:When I try to login I get the following notification (it might not be exactly this
"Login failed: urllib2.urlerror instance at 0xafa67faf3034" where the last 0xa etc. part changes every time.


http://pastebin.com/0i2uGsZF

Updated to newest version and I still get this error
Working great, thanks!! Smile
Really nice work on the plugin, very good functionality built-in, thank you Smile.

I had the same problems as feerlessleadr with logging in to my youtube account.
Then I set on debug logging, restarted xbmc and suddenly it logged in flawlessly when I launched the plugin againHuh

Thanks again Smile
feerlessleadr Wrote:i like the sound of this plugin so I installed it to see how it performed. However, after I start the plugin i get the settings screen where I can input my username and password and whatnot. Once I hit ok, it says that youtube beta is loading directory items, and it will sit there for a minute, and then xbmc will tell me that the script failed.
Sorry bout that.

It shouldn't have crashed, that was my bad.

There is a new download where it won't crash. Sadly i haven't been able to find a cause to the login problem yet. But still working on it.

http://code.google.com/p/youtubexbmc/downloads/list
poserdonut Wrote:Updated to newest version and I still get this error

I've discovered two errors in our login code:

1. Previously we url-encoded our login request, but didn't tell youtube we did so in the request header. This has probably caused *alot* of problems for people with any non-ascii chars in their username or password. Before i fixed this any request filled with nonsense like: "#€&)€=´–·÷=#?€!?~@±''“¡± would cause the error in your log, now you should get the "bad username or password".

2. Previously we lied about our user-agent and told YouTube that the request came from a machine running IE6. This is a really stupid thing to do, when you're trying to write login code. This has probably caused some connection error as Youtube would probably default to it's Internet Explorer "compliant" code, and who knows what that contains. Again, after this change it has become extremely difficult for me to provoke the "<urllib2.URLError instance at 0xaecb5e04>" from your logs.

/Henrik DK
procrastinator Wrote:well, I found a few minutes to have another go at posting the debug log again. I downloaded and installed the latest version of the plugin from the Google code page (uploaded at about 11pm GMT), and then ran the same test as I described in my first post on this thread. Same problems occured I'm afraid.

debug log: http://pastebin.com/116uXc9z

Hope it's useful. Best of luck!

Just wanted to give an update on this, we've been using this video to test our implementation of rtmpe support:
http://www.youtube.com/watch?v=8wxOVn99F...S&hl=en_US

Apparently this page is different from the ones you're getting with 4oD, unfortunately we're located out side the UK so its difficult for us to test this problem with out access to the page's html. From looking at the log it looks like the swf verification code never really kick's in Huh, but its difficult to know why without the opportunity to test for ourselves.

We're looking into getting a proxy setup for this but its gonna take some time Sad
Cheers for the update. The effort is much-appreciated.

Just had a search for another internationally available rtmpe stream on youtube (for testing). I didn't have any luck though. It is surprising difficult to find one when you're actually looking for it!
Released version 0.9.5

- Added even more debug to login
- Make login retry on IOError failure
- Removed IE login header.
- Removed url-encoded from login

http://code.google.com/p/youtubexbmc/downloads/list
procrastinator Wrote:Cheers for the update. The effort is much-appreciated.

Just had a search for another internationally available rtmpe stream on youtube (for testing). I didn't have any luck though. It is surprising difficult to find one when you're actually looking for it!

Can you play this video?

http://www.youtube.com/watch?v=8wxOVn99F...S&hl=en_US
I'm also having login trouble. http://pastebin.com/duLeZHte
HenrikDK Wrote:I've discovered two errors in our login code:

1. Previously we url-encoded our login request, but didn't tell youtube we did so in the request header. This has probably caused *alot* of problems for people with any non-ascii chars in their username or password. Before i fixed this any request filled with nonsense like: "#€&)€=´–·÷=#?€!?~@±''“¡± would cause the error in your log, now you should get the "bad username or password".

2. Previously we lied about our user-agent and told YouTube that the request came from a machine running IE6. This is a really stupid thing to do, when you're trying to write login code. This has probably caused some connection error as Youtube would probably default to it's Internet Explorer "compliant" code, and who knows what that contains. Again, after this change it has become extremely difficult for me to provoke the "<urllib2.URLError instance at 0xaecb5e04>" from your logs.

/Henrik DK

i think this may have something to do with my problem. I have a '\' in my password. Could that be the reason that I can't login and the script is failing?