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.
Im using OpenElec xbmc with the same issue...
This really is frustrating as I use youtube a hell of alot and its just not the same unless its on my big screen!

A fix for this would really be appreciated!
Since the last update, I'm presented with the on-screen numpad every time I open a video.

I've cleared my login information, rebooted and re-entered my login information. I was given access to my subscriptions with having to enter my Google 2-stage verification pin (because it's the same device, I guess).

I imagine the numpad has SOMETHING to do with 2-stage verification as that's the only reason I've seen the numpad before, but I haven't recieved any texts with a code yet and I've been seeing this issue all week.

I'm running XBMCBuntu
Hi everyone,

I think I found what appears to be a bug with the way that the plugin lists subscriptions - if you have more than 50 (which I do!) Smile

The end result is that it only lists the first 50 subscriptions that you have, when the plugin tries to retrieve more than that the following error appears in the debug log:

Code:
12:11:24 T:8100  NOTICE: [YouTube-4.4.6] _fetchPage : 'HTTPError : HTTP Error 401: NoLinkedYouTubeAccount'
12:11:24 T:8100  NOTICE: [YouTube-4.4.6] _fetchPage : 'Unhandled HTTPError : [401] <HTML>
                                            <HEAD>
                                            <TITLE>NoLinkedYouTubeAccount</TITLE>
                                            </HEAD>
                                            <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
                                            <H1>NoLinkedYouTubeAccount</H1>
                                            <H2>Error 401</H2>
                                            </BODY>
                                            </HTML>
                                             '

The fix appears to be simple, in the YouTubeFeeds.py file, edit line 330 so that it changes from:
Code:
url = feed + "start-index=" + str(index) + "&max-results=" + repr(50)
to:
Code:
url = feed + "v=2.1&start-index=" + str(index) + "&max-results=" + repr(50)

When I made this change myself it now loads all of my subscriptions without error.

If anyone else is having the same issue as me it might be worth trying this simple change before digging deeper...
Hello.

Youtube plugin can't play some videos. Here is LOG
http://pastebin.com/raw.php?i=1jxdYnPJ

Can anyone help me with? Thank you.
Change the - line to the + line in youtubeplayer.py. Worked for me.

elif len(s) == 85:
- return s[76] + s[82:76:-1] + s[83] + s[75:60:-1] + s[0] + s[59:50:-1] + s[1] + s[49:2:-1]
+ return s[2:8] + s[0] + s[9:21] + s[65] + s[22:65] + s[84] + s[66:82] + s[21]
elif len(s) == 84:
Hi there!

4.4.6 did not work playing videos. Rolling back to 4.4.4 did the trick.

I'm using XBMC 12.2 Git:32b1a5e (Compiled: May 2 2013).

Regards.
(2013-07-21, 20:11)falvarez Wrote: [ -> ]Hi there!

4.4.6 did not work playing videos. Rolling back to 4.4.4 did the trick.

I'm using XBMC 12.2 Git:32b1a5e (Compiled: May 2 2013).

Regards.

++
Using 4.4.4 I am able to browse categories and play videos but most of the My categories in the root give a "server not found/responding" error, except for My History which worked.
Intalled XBMC 13 nightly build and youtube addon (4.4.6) at three android devices, all got the same error message while tried to use it:

"Remote share - Could not connect to network server"

but the same version works fine at PC.

Any suggestions/ advice would be greatly appreciated!

Thank you!
(2013-07-22, 18:07)aural Wrote: [ -> ]Intalled XBMC 13 nightly build and youtube addon (4.4.6) at three android devices, all got the same error message while tried to use it:

"Remote share - Could not connect to network server"

but the same version works fine at PC.

Any suggestions/ advice would be greatly appreciated!

Thank you!

I'm getting that error (with 4.4.4) on my Pi but only when trying to access the My shortcuts from the root. Going into Browse categories I don't think I had any problems playing videos.

This debug log covers those errors http://pastebin.com/itWJzRaU
Hi All,

Youtube plugin stopped playing videos after upgrading to 4.4.6.
log is here: http://filebin.ca/p30g319DoJe

I cannot rollback to 4.4.4. from some reason (grayed out).

Thank you
Plugin (4.4.6) crashes only when trying to login.

Debug log
Code:
22:52:28 T:140471721678592  NOTICE: [YouTube-4.4.6] _fetchPage : 'called for : {'referer': u'https://accounts.google.com/ServiceLogin?continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dsign_in_button%26hl%3Dfi_FI%26next%3D%252F%26nomobiletemp%3D1&hl=fi_FI&passive=true&service=youtube&uilel=3', 'hidden': 'true', 'link': u'https://accounts.google.com/ServiceLoginAuth', 'url_data': {u'PersistentCookie': u'yes', u'timeStmp': u'', u'dnConn': u'', u'hl': u'fi_FI', u'service': u'youtube', u'rmShown': u'1', 'Passwd': 'xxxxxxxxx', u'GALX': u'hgj67tJy5eYj', u'dsh': u'1858765765826956', u'signIn': u'Kirjaudu sis\xe4\xe4n', u'continue': u'http://www.youtube.com/signin?action_handle_signin=true&amp;feature=sign_in_button&amp;hl=fi_FI&amp;next=%2F&amp;nomobiletemp=1', u'pstMsg': u'0', u'checkedDomains': u'youtube', u'secTok': u'', u'bgresponse': u'js_disabled', u'_utf8': u'☃', u'Email': 'xxxxxxxxx', u'checkConnection': u''}}'
22:52:28 T:140471721678592   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode characters in position 12-13: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/default.py", line 120, in <module>
                                                navigation.executeAction(params)
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/YouTubeNavigation.py", line 122, in executeAction
                                                self.login.login(params)
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 75, in login
                                                result, status = self.authorize()
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 85, in authorize
                                                (result, status) = self._httpLogin({"new": "true"})
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 183, in _httpLogin
                                                ret = self.core._fetchPage(fetch_options)
                                              File "/home/media/.xbmc/addons/plugin.video.youtube/YouTubeCore.py", line 403, in _fetchPage
                                                request = urllib2.Request(link, urllib.urlencode(urli))
                                              File "/usr/lib/python2.7/urllib.py", line 1312, in urlencode
                                                v = quote_plus(str(v))
                                            UnicodeEncodeError: 'ascii' codec can't encode characters in position 12-13: ordinal not in range(128)
                                            -->End of Python script error report<--

A quick fix for summer holidays Cool
YoutubeCore.py (line ~399)
Code:
if get("url_data"):
            request = urllib2.Request(link, urllib.urlencode(get("url_data")))

-->

        if get("url_data"):
        urli = get("url_data")
        urli['signIn'] = 'Kirjaudu sisaan'
            request = urllib2.Request(link, urllib.urlencode(urli))

It looks like url_data should be processed before giving it to urllib.urlencode or use other method that can code char above 127
(2013-07-24, 07:46)purch Wrote: [ -> ]Plugin (4.4.6) crashes only when trying to login.

removed the login credentials, worked like a charm. thanks !
can some one please help. I cannot play any video on Youtube.

Logs:

http://www.xbmclogs.com/show.php?id=39272
@honesta,

Please do not paste log contents directly in post as it creates too much clutter. Instead, upload complete debug log (wiki) to http://www.xbmclogs.com and post the assigned URL here.