[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
jonte511 Offline
Member
Posts: 71
Joined: May 2008
Reputation: 0
Post: #51
Working great, thanks!! Smile
find quote
Jeroen Offline
Skilled Skinner
Posts: 1,882
Joined: Feb 2008
Reputation: 4
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: 621
Joined: Apr 2008
Reputation: 3
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: 538
Joined: Jul 2007
Reputation: 17
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: 538
Joined: Jul 2007
Reputation: 17
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: 448
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: 621
Joined: Apr 2008
Reputation: 3
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: 621
Joined: Apr 2008
Reputation: 3
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
Posting Freak
Posts: 1,269
Joined: Oct 2008
Reputation: 54
Post: #59
I'm also having login trouble. http://pastebin.com/duLeZHte
find quote
feerlessleadr Offline
Fan
Posts: 310
Joined: Oct 2007
Reputation: 0
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