Kodi Community Forum
Release YouTube Plug-in Thread - 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 YouTube Plug-in Thread (/showthread.php?tid=267160)



RE: Official YouTube Plug-in Thread - tuinders - 2016-08-29

(2016-08-27, 15:17)Magic815 Wrote:
(2016-08-27, 00:43)robo989 Wrote:
(2016-08-26, 15:54)Magic815 Wrote: I've having issues with YouTube erroring out when I try to sign in/activate. This is what I'm seeing:

http://pastebin.com/VW4jNGdt

Any thoughts on what I can do?

Not to be rude but might be an idea to update to latest 5.2.2 as on first page that has been out a good month or so and post back if still not working.

Same issue with 5.2.2. Odd that the Kodi repo still only shows 5.2.1?

But yea, same sign in issue. Is anyone able to digest my logs from above and give any advice on what might be happening?
Same issue here, also with 5.2.2 on raspberry

Log:
Code:
01:06:57 365.212982 T:2834092976  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.9
01:06:57 365.431244 T:2989487024  NOTICE: CAESinkPi:AddPackets Underrun (delay:0.00 frames:2205)
01:07:32 400.699707 T:2834092976   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: string index out of range
                                            Traceback (most recent call last):
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 157, in _internal_root
                                                return self.on_root(context, re_match)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 500, in on_root
                                                yt_login.process(mode, self, context, re_match, False)
                                              File "/home/xbian/.kodi/addons/plugin.video.youtube/resources/lib/youtube/helper/yt_login.py", line 123, in process
                                                access_token = '%s|%s' % (access_tokens[0], access_token_kodi)
                                            IndexError: string index out of range
                                            -->End of Python script error report<--



RE: Official YouTube Plug-in Thread - tuinders - 2016-08-29

Sorry: Double post


RE: Official YouTube Plug-in Thread - Moon_LS - 2016-08-29

Hi all!

Same issue here

Code:
19:37:06 T:139807871190784  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12
19:37:07 T:139807871190784   ERROR: [plugin.video.youtube] Unknown kind ''
19:37:08 T:139809890400320   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/subscriptions/list/
19:37:08 T:139809890400320   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/subscriptions/list/) failed
19:37:09 T:139807871190784  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12
19:37:28 T:139808718427904  NOTICE: AddOnLog: PVR IPTV Simple Client: EPG file path is not configured. EPG not loaded.
19:38:17 T:139807896368896  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12
19:38:23 T:139807896368896  NOTICE: Previous line repeats 1 times.
19:38:23 T:139807896368896   ERROR: [plugin.video.youtube] Unknown kind ''
19:38:24 T:139809890400320   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/special/browse_channels/
19:38:24 T:139809890400320   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/special/browse_channels/) failed
19:38:25 T:139807896368896  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12
19:38:25 T:139807896368896   ERROR: [plugin.video.youtube] Unknown kind ''
19:38:26 T:139809890400320   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/subscriptions/list/
19:38:26 T:139809890400320   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/subscriptions/list/) failed
19:38:28 T:139807896368896  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12
19:38:31 T:139809890400320  NOTICE: Previous line repeats 1 times.
19:38:31 T:139809890400320   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/kodion/search/input/
19:38:31 T:139809890400320   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/kodion/search/input/) failed
19:38:31 T:139807896368896  NOTICE: [plugin.video.youtube] Running: YouTube (5.2.2) on Jarvis (16.1) with Python 2.7.12

But seems to be allright after updating my system !


RE: Official YouTube Plug-in Thread - joshcube - 2016-09-01

I have the same problem. Login not working after adding personal API keys. Running on Raspberry Pi (Openelec). Was working fine (the login part, but nothing else) prior to inputting the keys. Keys are working though because "Search" and "Popular Right Now" work.


RE: Official YouTube Plug-in Thread - sherl0k - 2016-09-01

updating the plugin seems to work, you need to cancel the initial API request so you can sign in properly twice in a row.


RE: Official YouTube Plug-in Thread - mysignup - 2016-09-01

I am having the same issue. Youtube login/logout is broken


RE: Official YouTube Plug-in Thread - joshcube - 2016-09-01

I solved my login problem. Went back through the API creation steps and found a detail I missed the first time around:

(NB: do not include the .apps.googleusercontent.com extension when you save/enter your Client ID)

I deleted .apps.googleuser.... from the end of my API ID and login worked just fine after that.


RE: Official YouTube Plug-in Thread - jmh2002 - 2016-09-01

(2016-09-01, 05:31)mysignup Wrote: I am having the same issue. Youtube login/logout is broken

NO, it is not. Please refrain from making such wildly inaccurate statements here that may only confuse other users.

During the last few days I have completely reauthorized YouTube on several of my devices, both Windows and iOS, and everything worked 100% correctly and normally.

Please also remember that the addon hasn't been updated, nothing has changed, and since it still works it is unlikely that there has been a change on the google api side of things to cause any such issues either.

Followers of this thread will note that 99% of recent problems have been related to alternative operating systems such as linux, ubuntu, open elec, libre elec, etc. Most problems seem to have been resolved externally, without any changes to the addon.

Sensible logic would therefore suggest that the problems probably lay elsewhere (ie: not with the addon)...

Please stop posting such nonsense statements.


RE: Official YouTube Plug-in Thread - jmh2002 - 2016-09-01

(2016-09-01, 05:40)joshcube Wrote: I solved my login problem. Went back through the API creation steps and found a detail I missed the first time around...

Thank you for confirming that you solved your issue Nod

I'm happy to see a new forum user that has used logic to think correctly, and thereafter updated the community with their findings.

Thank you.


RE: Official YouTube Plug-in Thread - tuinders - 2016-09-01

Found it:

Somehow it was "half-logged-in"

I managed to reset the user data of the plugin and after that everything worked ok again


RE: Official YouTube Plug-in Thread - mysignup - 2016-09-02

(2016-09-01, 14:24)jmh2002 Wrote:
(2016-09-01, 05:31)mysignup Wrote: I am having the same issue. Youtube login/logout is broken

NO, it is not. Please refrain from making such wildly inaccurate statements here that may only confuse other users.

During the last few days I have completely reauthorized YouTube on several of my devices, both Windows and iOS, and everything worked 100% correctly and normally.

Please also remember that the addon hasn't been updated, nothing has changed, and since it still works it is unlikely that there has been a change on the google api side of things to cause any such issues either.

Followers of this thread will note that 99% of recent problems have been related to alternative operating systems such as linux, ubuntu, open elec, libre elec, etc. Most problems seem to have been resolved externally, without any changes to the addon.

Sensible logic would therefore suggest that the problems probably lay elsewhere (ie: not with the addon)...

Please stop posting such nonsense statements.

I am sorry to have offended you. That was not the intension and also I was not trying to confuse others. I was just confused myself.I will follow joshube's advice and try it.


RE: Official YouTube Plug-in Thread - jmh2002 - 2016-09-02

(2016-09-01, 21:33)tuinders Wrote: Found it:

Somehow it was "half-logged-in"

I managed to reset the user data of the plugin and after that everything worked ok again

Thank you for confirming that you solved your issue Nod

All users please note that if you have followed all other steps correctly, then deleting the "Kodi > userdata > addon_data > plugin.video.youtube" folder is the most common and successful troubleshooting step to perform.

It is mentioned dozens of times in this thread (in case anyone actually reads the previous pages...)

Thereafter you will need to setup the YouTube addon like from new.


RE: Official YouTube Plug-in Thread - jmh2002 - 2016-09-02

@jdf76: perhaps you can add this 'fix' and a note about problems with alternative operating systems to your post on the first page?

Perhaps even a summary of basic troubleshooting and common fixes? Because clearly they often seem to be missed from within the thread and the same problems, questions, and answers are repeated over and over. (I see post #2 is deleted/empty and could be used for this purpose)

If we could just point users (especially new users) to the first page maybe it would save time for everyone?

THANKS Smile


RE: Official YouTube Plug-in Thread - VelvetKevorkian - 2016-09-02

Sorry if this has been discussed before, but i'm just too lazy to read 63 pages and search didn't help.

I've set "Fanart list" as my preferred episode view in the settings.
Big thumbnail, video description, length, info... it's perfect.

But it does not work with "Recommended videos" and "Popular videos".
For whatever reason, i can only chose "List" view or "Thumbnail" view.
Also, hitting the info button does nothing in these folders, where as normally you'd get a video info popup.


RE: Official YouTube Plug-in Thread - ChristmasPi - 2016-09-03

I absolutely love the YouTube plugin and appreciate that it is still being maintained.

Quick question. in the plugin, there is a section called "Popular right now". Does anyone know what YouTube URL the plugin pulls these videos from?

The reason I ask is sometimes I don't have Kodi but wouldn't mind watching these videos in a browser. I've found the YouTube trending video pages, but I've never seen a page that exactly matches the 4 pages of "Popular right now".

Thank you