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

  Thread Rating:
  • 24 Votes - 4.21 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TobiasTheCommie Offline
Skilled Python Coder
Posts: 618
Joined: Apr 2008
Reputation: 6
Post: #46
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.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #47
no, it won't work on xbox. xbox doesn't have the add-ons system and i doubt it ever will.
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 618
Joined: Apr 2008
Reputation: 6
Post: #48
I guess that answers that.
find quote
feerlessleadr Offline
Fan
Posts: 334
Joined: Oct 2007
Reputation: 1
Post: #49
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 feerlessleadr@gmail.com (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.
find quote
poserdonut Offline
Senior Member
Posts: 101
Joined: Jun 2009
Reputation: 0
Post: #50
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
find quote
jonte511 Offline
Member
Posts: 71
Joined: May 2008
Reputation: 0
Post: #51
Working great, thanks!! Smile
find quote
Jeroen Offline
Skilled Skinner
Posts: 2,499
Joined: Feb 2008
Reputation: 23
Location: The Netherlands
Post: #52
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 againConfused

Thanks again Smile
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 618
Joined: Apr 2008
Reputation: 6
Post: #53
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
find quote
HenrikDK Offline
Skilled Python Coder
Posts: 539
Joined: Jul 2007
Reputation: 18
Post: #54
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
(This post was last modified: 2010-08-25 00:38 by HenrikDK.)
find quote
HenrikDK Offline
Skilled Python Coder
Posts: 539
Joined: Jul 2007
Reputation: 18
Post: #55
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 Confused, 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
find quote
procrastinator Offline
Fan
Posts: 443
Joined: Aug 2008
Reputation: 4
Location: UK
Post: #56
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!
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 618
Joined: Apr 2008
Reputation: 6
Post: #57
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
find quote
TobiasTheCommie Offline
Skilled Python Coder
Posts: 618
Joined: Apr 2008
Reputation: 6
Post: #58
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
find quote
divingmule Offline
Skilled Python Coder
Posts: 1,297
Joined: Oct 2008
Reputation: 61
Post: #59
I'm also having login trouble. http://pastebin.com/duLeZHte
find quote
feerlessleadr Offline
Fan
Posts: 334
Joined: Oct 2007
Reputation: 1
Post: #60
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?
find quote
Post Reply