Kodi Community Forum
[RELEASE] YouTube3 - YouTube Script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] YouTube3 - YouTube Script (/showthread.php?tid=33585)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


Still problems - matslund - 2009-04-15

Hi,

I also had the same problem and change the _MPLAYER to _AUTO, but it still does not work. I click on a video and it seems to want to start, but just a few seconds (or 1 second, not a timeout) nothing happens. I do not see any error messages in the script output. Other scripts works fine, and I can watch SVT for instance, without problems... Using the latest XBMC build, but I have tried others, including latest stable release, with same results.

Everything seems to work fine, except actually watching the video Sad

Any ideas?

borick Wrote:Thank you for trying this! I don't think anyone else tried it since no one has posted anything about it. Since I don't experience the problem, I couldn't debug it. So it helps very much for you to let me know this fixed a problem you were having Smile Hopefully I will include this change in a future version of the script. Thanks again.



- eriksmith200 - 2009-04-15

Is the version in Downloads:
http://code.google.com/p/xbmc-youtube/downloads/list

the same as in the source?
http://code.google.com/p/xbmc-youtube/source/browse/#svn/trunk/YouTube3

Download version is uploaded March 1, last revision in source is from Feb 12


- greatant1337 - 2009-04-18

I've just finished off a skin for this script to go with MC360. It's not perfect (I hate the next/previous buttons) but it's nicer to look at than the default PM3 skin.

Would be cool if it got placed in the svn and thus was automatically in each release.

Download It

Image


- jabberwocky - 2009-04-18

I can't play any videos from YouTube at the moment. Here's what I get in my debug log:

Code:
17:23:24 M: 19914752   DEBUG:   msg: mplayer_open_file(http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18)
17:23:24 M: 19914752   DEBUG:   msg: get_path('get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18.conf') -> 'Q:\system\players\mplayer\get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18.conf'
17:23:24 M: 19914752   DEBUG:   msg: Playing http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18.
17:23:24 M: 19914752   DEBUG:   msg: find subtitles
17:23:24 M: 19914752   DEBUG:   msg: auto open Z:\subtitle
17:23:24 M: 19914752   DEBUG:   msg: Filename for url is now http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18
17:23:24 M: 19914752   DEBUG:   msg: protocol:http
17:23:24 M: 19914752   DEBUG:   msg: open stream protocol:http
17:23:24 M: 19894272   DEBUG:   msg: WINSOCK2 init: 0
[b]17:23:24 M: 19894272   DEBUG:   msg: Filename for url is now http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18
17:23:24 M: 19894272   DEBUG:   msg: Filename for url is now
17:23:24 M: 19894272   DEBUG:   msg: Not an URL!
[/b]
17:23:24 M: 19894272   DEBUG:   msg: Invalid proxy setting... Trying without proxy.
17:23:24 M: 19894272   DEBUG:   msg: Resolving www.youtube.com for AF_INET...
17:23:24 M: 19894272   DEBUG:   msg: Connecting to server www.youtube.com[www.youtube.com]:80 ...
17:23:25 M: 19894272   DEBUG:   msg: --- HTTP DEBUG HEADER --- START ---
17:23:25 M: 19894272   DEBUG:   msg: protocol:           [HTTP/1.1]
17:23:25 M: 19894272   DEBUG:   msg: http minor version: [1]
[b]17:23:25 M: 19894272   DEBUG:   msg: uri:                [(null)]
17:23:25 M: 19894272   DEBUG:   msg: method:             [(null)]
17:23:25 M: 19894272   DEBUG:   msg: status code:        [404]
17:23:25 M: 19894272   DEBUG:   msg: reason phrase:      [Not Found][/b]
17:23:25 M: 19894272   DEBUG:   msg: body size:          [0]
17:23:25 M: 19894272   DEBUG:   msg: Fields:
17:23:25 M: 19894272   DEBUG:   msg:  0 - Date: Sat, 18 Apr 2009 16:23:25 GMT
17:23:25 M: 19894272   DEBUG:   msg:  1 - Server: Apache
17:23:25 M: 19894272   DEBUG:   msg:  2 - X-Content-Type-Options: nosniff
17:23:25 M: 19894272   DEBUG:   msg:  3 - Expires: Tue, 27 Apr 1971 19:44:06 EST
17:23:25 M: 19894272   DEBUG:   msg:  4 - X-YouTube-MID: WkFSZzctYUFHdmpGR0xnU3ZFVUYzSC05SWx2dTlleGdEZlJKcTBHTEMwNHdFQXhXLXhfYnhn
17:23:25 M: 19894272   DEBUG:   msg:  5 - Cache-Control: no-cache
17:23:25 M: 19894272   DEBUG:   msg:  6 - Connection: close
17:23:25 M: 19894272   DEBUG:   msg:  7 - Content-Type: text/html; charset=utf-8
17:23:25 M: 19894272   DEBUG:   msg: --- HTTP DEBUG HEADER --- END ---
17:23:25 M: 19894272   DEBUG:   msg: Server returned 404: Not Found
17:23:25 M: 19894272   DEBUG:   msg: Unable to open URL: http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18
17:23:25 M: 19894272   DEBUG:   msg: unable to open stream
[b]17:23:25 M: 19894272   ERROR: CMPlayer::OpenFile http://www.youtube.com/get_video?video_id=z1mdH-EFjQw&t=vjVQa1PpcFN92CBTgz6EJG9Fjhg3f32z&fmt=18 failed with code 0[/b]

XBMC: Built on Apr 4 2009 (SVN:19198, compiler 1310)

[EDIT] Just noticed that I've got version 3.1 that shipped with the T3CH build, you can probably disregard this message.


- eriksmith200 - 2009-04-21

eriksmith200 Wrote:Is the version in Downloads:
http://code.google.com/p/xbmc-youtube/downloads/list

the same as in the source?
http://code.google.com/p/xbmc-youtube/source/browse/#svn/trunk/YouTube3

Download version is uploaded March 1, last revision in source is from Feb 12

anyone?


- greatant1337 - 2009-04-22

eriksmith200 Wrote:Is the version in Downloads:
http://code.google.com/p/xbmc-youtube/downloads/list

the same as in the source?
http://code.google.com/p/xbmc-youtube/source/browse/#svn/trunk/YouTube3

Download version is uploaded March 1, last revision in source is from Feb 12

Yeah, I'm pretty sure it is.


- YesboX - 2009-05-03

Im having this problem to. The video doesnt show. I have a fresh install of XBMC-SVN_2009-05-01_rev19856-T3CH-9.04-RC1 with YouTube-3-4 installed in the scriptfolder. I cant see anything named python in my xbmcfolder. Is it an app or a script? Where can i get it, if this is the problem?.


PS: Does anyone know if there is a script for SVT PLAY?


- bizzton3k - 2009-05-18

Any new news here?


- borick - 2009-05-18

eriksmith200 Wrote:Is the version in Downloads:
http://code.google.com/p/xbmc-youtube/downloads/list

the same as in the source?
http://code.google.com/p/xbmc-youtube/source/browse/#svn/trunk/YouTube3

Download version is uploaded March 1, last revision in source is from Feb 12

Sorry I didn't update the source properly, I am keeping the files mostly on my local SVN - the downloads are out of sink with the source and the downloads should be the most recent

I haven't checked this thread in a while - I'm taken a long break from supporting this script unless there are any major bugs like youtube not working

Can anyone report whether or not this script works for them? Edit: it works for me


- borick - 2009-05-18

YesboX Wrote:Im having this problem to. The video doesnt show. I have a fresh install of XBMC-SVN_2009-05-01_rev19856-T3CH-9.04-RC1 with YouTube-3-4 installed in the scriptfolder. I cant see anything named python in my xbmcfolder. Is it an app or a script? Where can i get it, if this is the problem?.


PS: Does anyone know if there is a script for SVT PLAY?

This is a script for XBMC - put it in your scripts folder


- borick - 2009-05-18

grote002 Wrote:I love this script, but I was wondering if you could add the info from Youtube (like title/description/thumbnail) to the videoinfo bar while playing the video, now it just shows "get_video" as title.
I think i've seen the Apple.com trailers-script do something similar.

Thanks for this great script.

This is a good suggestion... ill create it as an enhancement on the issues page on http://code.google.com/p/xbmc-youtube/issues/list


- Cecilia - 2009-05-26

I know I had the super-great YouTube script running...but I've upgraded a few times, latest to Babylon (t3ch), and now it doesn't work, and silly me has forgotten which was the last version it worked properly with.

Can someone help me out? I just need to know which is the latest XBMC (for xbox) that works with the YouTube script. (I've tried both the version in this thread as well as the one from the downloader.) It doesn't work with the May 21 version of Babylon, or the final version from May 9. Do I have to go back to Atlantis? If so, which one?

TIA! Smile


- PantsOnFire - 2009-06-07

Plugin seems broken today, no sections, such as Featured, or Most Commented, are opening.

Site structure changed?


Subscriptions Addon - ApoXX - 2009-06-07

Thanks for the script - it works great on my XBOX. I wanted to be able to view my subscriptions easily, so I added the appropriate feed and menu item. The following changes were required:

./youtube.py

Added the following near line 104 after self.favorites_url = ...

Code:
        self.subscriptions_url = self.gdata_url + '/feeds/api/users/%s/newsubscriptionvideos?max-results=' + str(self.per_page) + "&orderby=" + str(self.ordertypes[self.ordertype]) + "&start-index=" + str(self.per_page*self.page_number-self.per_page+1)

Added the following function near line 162 after the return statement of the function get_user_playlists:

Code:
    def get_user_subscriptions(self, user):
    
        self.initUrls()
        
        url = self.subscriptions_url % user
        
        return self.get_feed_data(url)

./default.py

Added the following near line 918 after self.get_user_playlists(self.yt.get_user_playlists, 'Playlists of', None, str(self.settings[4])):

Code:
        elif ctrl is self.getControl(93):
            self.get_user_videos(self.yt.get_user_subscriptions, 'Subscriptions of', None, str(self.settings[4]))

Added the following near line 1059 after self.getControl(92).setVisible(visible):

Code:
        self.getControl(93).setVisible(visible)

Added the following near line 1120 after self.getControl(92).setVisible(visible):

Code:
        self.getControl(93).setVisible(visible)

./resources/skins/DefaultSkin/PAL/youtube.xml

Added the following near line 656 after <control type="button" id="92">...</control>:

Code:
            <control type="button" id="93">
            
                <description>User Subscriptions Button</description>
                <label>User Subscriptions</label>
                <posx>21</posx>
                <posy>195</posy>

                <onup>92</onup>
                <ondown>203</ondown>
                <onleft>202</onleft>
                <onright>202</onright>    

                <width>165</width>
                <height>20</height>        
                <texturefocus>yt-button-focus.png</texturefocus>
                <texturenofocus>yt-button-nofocus.png</texturenofocus>
                <textcolor>ffffffff</textcolor>
                <disabledcolor>60ffffff</disabledcolor>
                <textoffsetx>17</textoffsetx>
                <aligny>center</aligny>                        
                <font>font10</font>
            </control>

I apologize in advance if it doesn't work for you, I may be be missing a change but I think I got them all. Enjoy :o


- dynamix - 2009-06-15

borick, very nice job on this script. Works lovely, thanks!