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.
Hi, I think I spotted a bug. Your addon doesn't play videos if a proxy is enabled.

My ISP is throttling Youtube-Videos, but it also offers a proxy with a fast connection to Youtube. But if I try to play a video with the proxy enabled it fails:

Code:
14:51:10 T:2692742000 M:1325670400  NOTICE: YouTube-2.0.4
14:51:14 T:2692742000 M:1325051904  NOTICE: YouTube-2.0.4 construct_video_url: stream_map : False
14:51:15 T:3054106496 M:1323921408  NOTICE: DVDPlayer: Opening: http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
14:51:15 T:3054106496 M:1323921408 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:51:15 T:2662333296 M:1323921408  NOTICE: Creating InputStream
14:51:15 T:2662333296 M:1323794432 WARNING: FillBuffer: curl failed with code 22
14:51:15 T:2662333296 M:1323794432   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:51:15 T:2662333296 M:1323794432   ERROR: Open - failed to open source <http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8>
14:51:15 T:2662333296 M:1323794432   ERROR: CDVDPlayer::OpenInputStream - error opening [http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8]
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit()
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:51:15 T:3054106496 M:1323794432   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/search/new&action=play_video&videoid=JGe8DuCy5PU]

Could you take a look at it? Sometimes even SD-videos buffer.
anybody facing the same issue or is it just not working for me?

nmirza Wrote:I just tried the code for network buffer in advanced settings on osx, with newest official nightly build from june 3rd, but not sure how i'm supposed to know if buffering is actually working? a few pages back i read about pressing pause and seeing buffering show up. I've tried pressing info, and menu, to see if that comes up when paused or playing but dont see buffering anywhere.

since i do have youtube throttling alot, this would definitely be helpful for me to enable. as it stands, my advanced settings file on osx looks like the following. i already had a file in my userdata folder btw, the video extensions part was alrady there, i just added the network section i was supposed to.


Code:
<advancedsettings>
  <videoextensions>
    <add>.html</add>
  </videoextensions>


<network>
   <cachemembuffersize>0</cachemembuffersize>
  </network>


</advancedsettings>
membrane Wrote:Hi, I think I spotted a bug. Your addon doesn't play videos if a proxy is enabled.

My ISP is throttling Youtube-Videos, but it also offers a proxy with a fast connection to Youtube. But if I try to play a video with the proxy enabled it fails:

Code:
14:51:10 T:2692742000 M:1325670400  NOTICE: YouTube-2.0.4
14:51:14 T:2692742000 M:1325051904  NOTICE: YouTube-2.0.4 construct_video_url: stream_map : False
14:51:15 T:3054106496 M:1323921408  NOTICE: DVDPlayer: Opening: http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
14:51:15 T:3054106496 M:1323921408 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:51:15 T:2662333296 M:1323921408  NOTICE: Creating InputStream
14:51:15 T:2662333296 M:1323794432 WARNING: FillBuffer: curl failed with code 22
14:51:15 T:2662333296 M:1323794432   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:51:15 T:2662333296 M:1323794432   ERROR: Open - failed to open source <http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8>
14:51:15 T:2662333296 M:1323794432   ERROR: CDVDPlayer::OpenInputStream - error opening [http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8]
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit()
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:51:15 T:3054106496 M:1323794432   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/search/new&action=play_video&videoid=JGe8DuCy5PU]

Could you take a look at it? Sometimes even SD-videos buffer.


Playback is purely controlled by xbmc, we just deliver a url to xbmc's dvdplayer core. What you're experiencing would be related only to xbmc code, and theres nothing i can do to fix it.

===== EDIT =====

Just thought twice about this. The url's youtube provides are locked to a specific ip, if the plugin is accessing youtube directly (it doesn't support proxy's) and xbmc's player core is accessing from a proxy (ie. another ip) the video links won't work. This requires implementation of a proxy client in the plugin and a larger refactor of the code, so it's gonna take a while to fix.
HenrikDK Wrote:Yeah seems youtube changed layout again, i'll look into a fix.

Amazing thank you! And thanks for a great plugin!! Big Grin
membrane Wrote:Hi, I think I spotted a bug. Your addon doesn't play videos if a proxy is enabled.

My ISP is throttling Youtube-Videos, but it also offers a proxy with a fast connection to Youtube. But if I try to play a video with the proxy enabled it fails:

Code:
14:51:10 T:2692742000 M:1325670400  NOTICE: YouTube-2.0.4
14:51:14 T:2692742000 M:1325051904  NOTICE: YouTube-2.0.4 construct_video_url: stream_map : False
14:51:15 T:3054106496 M:1323921408  NOTICE: DVDPlayer: Opening: http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
14:51:15 T:3054106496 M:1323921408 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:51:15 T:2662333296 M:1323921408  NOTICE: Creating InputStream
14:51:15 T:2662333296 M:1323794432 WARNING: FillBuffer: curl failed with code 22
14:51:15 T:2662333296 M:1323794432   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:51:15 T:2662333296 M:1323794432   ERROR: Open - failed to open source <http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8>
14:51:15 T:2662333296 M:1323794432   ERROR: CDVDPlayer::OpenInputStream - error opening [http://o-o.preferred.fra02s03.v15.lscache6.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=901317,907605,913100,910209&itag=37&ip=84.0.0.0&signature=C6399CBA193D25AB84E1095111F42AAA76B666FA.047D0AA6B924FBBC8A49A7EEEFED4364B339C501&sver=3&ratebypass=yes&expire=1308942000&key=yt1&ipbits=8&id=2467bc0ee0b2e4f5 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8]
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit()
14:51:15 T:2662333296 M:1323794432  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:51:15 T:3054106496 M:1323794432   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/search/new&action=play_video&videoid=JGe8DuCy5PU]

Could you take a look at it? Sometimes even SD-videos buffer.

Hi, just checked around and it seems that python plugin's should be using the same proxy settings as xbmc if i understand this thread and ticket correctly:
http://forum.xbmc.org/showthread.php?tid...ight=proxy
http://trac.xbmc.org/ticket/11485

Could you pleasy try and verify with a nightly build? Also please provide a full debug log with both xbmc's and the plugins debug mode enabled when testing Smile
HenrikDK Wrote:Hi, just checked around and it seems that python plugin's should be using the same proxy settings as xbmc if i understand this thread and ticket correctly:
http://forum.xbmc.org/showthread.php?tid...ight=proxy
http://trac.xbmc.org/ticket/11485

Could you pleasy try and verify with a nightly build? Also please provide a full debug log with both xbmc's and the plugins debug mode enabled when testing Smile

Well, doesn't really matter unless all you watch is movie trailers.
speed32219 Wrote:I've upgraded librtmp to the latest version and have no more incompatible errors and all other addons work great. When I try and play any genre movie, I'm getting the same error over and over again. Here is a copy of the error:

YouTube Version 2.04
Ubuntu 10.10, 2.6.35-28-generic
XBMC Built on Apr 25 2011 (Git:Unknown)

Failing and Working: http://pastebin.com/4DcqvNyi

FYI: I did get one video to load and it would load any time I came back to it. It almost looks like a scrapper issue, like files are not there.
The YouTube genre was crime and the selection is The Negotiator.

Hi speed32219, sorry but your post got lost in all the back and forth about the new caching implemented in xbmc. I've looked at your log and playback fails because youtube recently canged their httplogin. Interesting bit's of your log are:

Code:
21:17:19 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 ARGV: ['plugin://plugin.video.youtube/', '0', '?path=/root/explore/movies&action=play_video&videoid=sj4THpYcvOg']
21:17:19 T:2985294704 M:726306816   DEBUG: Thread Background Loader 2985294704 terminating
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 construct_video_url : 'sj4THpYcvOg'
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 _get_details: 'sj4THpYcvOg'
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 fetching page : http://gdata.youtube.com/feeds/api/videos/sj4THpYcvOg
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 _getvideoinfo: 6553
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 _getvideoinfo done : 1
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 _get_details done
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 extractVariables : 'sj4THpYcvOg'
21:17:19 T:3060783984 M:726298624  NOTICE: YouTube-2.0.4 fetching page : http://www.youtube.com/watch?v=sj4THpYcvOg&safeSearch=none&hl=en_us
[b]21:17:20 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 _fetchPage age verification required, retrying with login[/b]
21:17:20 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 fetching page : http://www.youtube.com/watch?v=sj4THpYcvOg&safeSearch=none&hl=en_us
21:17:20 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 _fetchPage adding cookie
21:17:20 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 _httpLogin errors: 0
21:17:20 T:3060783984 M:726319104  NOTICE: YouTube-2.0.4 _httpLogin returning stored login_info
21:17:20 T:8730432 M:726319104    INFO: Loading skin file: DialogProgress.xml
21:17:20 T:8730432 M:726319104   DEBUG: Load DialogProgress.xml: 5.79ms
21:17:20 T:8730432 M:726319104   DEBUG: DialogProgress::StartModal called
21:17:20 T:8730432 M:726319104   DEBUG: ------ Window Init (DialogProgress.xml) ------
21:17:20 T:8730432 M:726319104   DEBUG: Alloc resources: 0.43ms (0.01 ms skin load)
21:17:21 T:3060783984 M:726953984  NOTICE: YouTube-2.0.4 extractVariables done
[b]21:17:21 T:3060783984 M:726953984  NOTICE: YouTube-2.0.4 construct_video_url Hopefully this extra if check is now legacy THIS SHOULD NOT HAPPEN ANYMORE[/b]
21:17:21 T:3060783984 M:726953984    INFO: Scriptresult: Success
21:17:21 T:3060783984 M:726953984    INFO: Python script stopped
21:17:21 T:3060783984 M:726953984   DEBUG: Thread Python Thread 3060783984 terminating
21:17:21 T:8730432 M:726953984   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
21:17:21 T:8730432 M:726953984   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/explore/movies&action=play_video&videoid=sj4THpYcvOg]
21:17:21 T:8730432 M:726953984   DEBUG: Playlist Player: no more playable items... aborting playback
21:17:21 T:2985294704 M:726953984   DEBUG: Thread Background Loader start, auto delete: 0

I've verified that the curent login code fails on my own machine and we're working on a fix until that time all videos that require http login to function will fail (and my guess is that this includes most of youtubes movies section.)
I love this plug-in but is there supposed to be a 'search' function?

I know in some version I had in the past I could click on 'search' and type in a query and it would bring up youtube videos relevant to the search.

Thanks.....
dtviewer Wrote:I love this plug-in but is there supposed to be a 'search' function?

I know in some version I had in the past I could click on 'search' and type in a query and it would bring up youtube videos relevant to the search.

Thanks.....

Like this one?
Image
dtviewer Wrote:I love this plug-in but is there supposed to be a 'search' function?

I know in some version I had in the past I could click on 'search' and type in a query and it would bring up youtube videos relevant to the search.

Thanks.....

The folder has probably been deactivated in settings, go into folders and check that show Search is active.
HenrikDK Wrote:The folder has probably been deactivated in settings, go into folders and check that show Search is active.

That was it.

Thanks!
HenrikDK Wrote:Hi speed32219, sorry but your post got lost in all the back and forth about the new caching implemented in xbmc. I've looked at your log and playback fails because youtube recently canged their httplogin. Interesting bit's of your log are:

I've verified that the curent login code fails on my own machine and we're working on a fix until that time all videos that require http login to function will fail (and my guess is that this includes most of youtubes movies section.)

I appreciate the feedback, and I do love the youtube plugin, I was just having the login problems. With everyone posting about different things, I was starting to wonder if I was the only one having issues. Smile

I did notice that when you select a movie now, instead of it going directly to the movie it calls another html page asking do you really want to play the movie.
Thanks again.
speed32219 Wrote:I appreciate the feedback, and I do love the youtube plugin, I was just having the login problems. With everyone posting about different things, I was starting to wonder if I was the only one having issues. Smile

I did notice that when you select a movie now, instead of it going directly to the movie it calls another html page asking do you really want to play the movie.
Thanks again.
Good news.

I have The Negotiator playing here now. So everything should be Aok.

I'll upload a new zip within a few hours.
TobiasTheCommie Wrote:Good news.

I have The Negotiator playing here now. So everything should be Aok.

I'll upload a new zip within a few hours.

As "Tony the Tiger would say", GRRRRRRRRRRREAAAATTTTTT! Big Grin

Wait, The Negotiator was the only one that would work in the current configuration. All other movies/films would fail. Don't use The Negotiator for testing failures, choose something else.
speed32219 Wrote:As "Tony the Tiger would say", GRRRRRRRRRRREAAAATTTTTT! Big Grin

Wait, The Negotiator was the only one that would work in the current configuration. All other movies/films would fail. Don't use The Negotiator for testing failures, choose something else.

In that case tell me which one currently fails for you.

Uploaded 2.0.5
http://code.google.com/p/youtubexbmc/downloads/list

Please try it out and if something still fails throw me a debug log(and preferably also the name and id of the video in question).