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 - bromix - 2016-09-20

Don't know if this was already posted...but here again...Google f***** up big Sad

https://code.google.com/p/gdata-issues/issues/detail?id=4642

Quote:In addition, requests to retrieve playlist details (playlists.list) or playlist items (playlistItems.list) for a channel's watch history or watch later playlist now return empty lists. This behavior is true for the new values, HL and WL, as well as for any watch history or watch later playlist IDs that your API Client may have already stored.

Source: https://developers.google.com/youtube/v3/revision_history

So this means...APIv3 doesn't provide any History or Watch Later playlist anymore?!?! WTF?!?!Huh

And hi again Smile


RE: Official YouTube Plug-in Thread - jonib - 2016-09-20

(2016-09-20, 15:37)bromix Wrote: Don't know if this was already posted...but here again...Google f***** up big Sad
A solution (Temporary?) was posted already http://forum.kodi.tv/showthread.php?tid=267160&pid=2417205#pid2417205

jonib


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

Hi Bromix, nice to see you, hope all is well with you there Wink

There have been a few posts over the last 2 pages regarding this problem which you can review, and some helpful users have provided some quick and dirty fixes.

Please take a look, Im sure everyone would welcome your input too Nod


RE: Official YouTube Plug-in Thread - NoTanFightFan - 2016-09-21

I've got my watch later working again. But my History tab shows 0 items, just like watch later was doing. I originally cam on here to see about the history tab and just happened to find a fix for watch later in the process. Anyone know how to get my history working?

Also, my reccomendations is not what I get on YouTube.com, it's more like an a ton of the Most Popular videos on YouTube, and not really my recomendations. This happened after the update.


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

See my post here http://forum.kodi.tv/showthread.php?tid=267160&pid=2418500#pid2418500 on the previous page regarding the problems with history, and an option to create a history of your own locally watched items.


RE: Official YouTube Plug-in Thread - gjwAudio - 2016-09-21

(2016-09-17, 21:15)cgx_ Wrote: Dirty hack to get watch later working for now, google is likely to block this:
resources/lib/youtube/provider.py around line 572
change
['channel', 'mine', 'playlist', playlists['watchLater']]),
to
['channel', 'mine', 'playlist', ' WL']),

The space in front of WL is important Wink

+1 !!!

Got my list back - Thank You so much for the hack Nod


RE: Official YouTube Plug-in Thread - gotiuser01 - 2016-09-21

(2016-09-21, 01:00)NoTanFightFan Wrote: Also, my reccomendations is not what I get on YouTube.com, it's more like an a ton of the Most Popular videos on YouTube, and not really my recomendations. This happened after the update.

This happens to me as well. Now Recommendations and Popular Right Now are pretty much giving me the same content. No more personalized recommended content since the API update I guess.


RE: Official YouTube Plug-in Thread - marriol123343 - 2016-09-21

(2016-09-20, 15:37)bromix Wrote: And hi again Smile

Hey Bromix, how about a comeback/giving some input? ;-)

https://github.com/h0d3nt3uf3l/plugin.video.youtube2k
http://www.kodinerds.net/index.php/Thread/52126-Youtube2k-Disskussionen/


RE: Official YouTube Plug-in Thread - NoTanFightFan - 2016-09-21

(2016-09-21, 07:49)jmh2002 Wrote: See my post here http://forum.kodi.tv/showthread.php?tid=267160&pid=2418500#pid2418500 on the previous page regarding the problems with history, and an option to create a history of your own locally watched items.

Thanks for that. That's a great addon. Do you happen to know how I can get the YouTube history from my PC use of the YouTube website to some how sync to this addon? Or can I add the new API YouTube History link to the addon or something? I do appreciate the reccomendation.


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

No, that is why I recommended the Last Played addon for the purpose of creating a more useable history within Kodi.

Another suggestion if you would like everything (or most things) shown as history inside Kodi is to use the "Play to Kodi" Chrome browser extension rather than watching the videos directly. Then these watched videos will show in Last Played as a history.

I do this often because I tend to multitask, so I play the video on an alternate screen/device close to me (sometimes while continuing to browse/search on YouTube with the PC)

PS: If you have the Kore remote installed on your Android device you will also be able "Play to Kodi" from the YouTube mobile app.


RE: Official YouTube Plug-in Thread - compy - 2016-09-22

Hello,

I have basic question, is this plugin using sample codes from here ?

https://github.com/youtube/api-samples/tree/master/python

and how do you merge the code change in samples with real plugin ?


RE: Official YouTube Plug-in Thread - zgroza - 2016-09-23

Hello,

I have following error:
10:39:58 1023.877991 T:1632486320 NOTICE: [plugin.video.youtube] Running: YouTube (5.2.1) on Jarvis (16.1) with Python 2.7.9
10:41:50 1135.566406 T:1632486320 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<--
10:41:50 1135.693604 T:1952899072 ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/
10:41:50 1135.695435 T:1952899072 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed

Each time i open yt plugin it asks me for /activate i was trying to use different accounts, remove plugin data, reinstalling it and still nothing.
I went to whole thread and follow all of advices. is there something else i can play with?
Thanks in advance.


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

Are you using some type of alternative OS? If you really have followed all the instructions here correctly (triple check this, because user error is also quite high on the list of problems here) then I would look in the direction of the OS.

Multiple users have had issues with with alternative OS and you can find details in recent pages (in the last 10 or so pages from memory).

Also, please dont post snippets of logs, it is against the forum rules (http://kodi.wiki/view/Debug_log). Post a link instead.

Please edit your post.


RE: Official YouTube Plug-in Thread - fvaresi - 2016-09-23

(2016-09-23, 10:48)zgroza Wrote: Each time i open yt plugin it asks me for /activate i was trying to use different accounts, remove plugin data, reinstalling it and still nothing.
I went to whole thread and follow all of advices. is there something else i can play with?
Thanks in advance.

Hi, there.

I was having the exact same problem (similar log info) and I fixed it by installing latest version (5.2.2) from zip file and removing the plugin data from userdata (in my install it's ~/.kodi/userdata/addon_data/plugin.video.youtube).

After launching again, I used the setup wizard and it worked fine (with the exception of history/watch_later as mentioned above).

Hope it helps.


RE: Official YouTube Plug-in Thread - NoTanFightFan - 2016-09-23

(2016-09-22, 08:00)jmh2002 Wrote: No, that is why I recommended the Last Played addon for the purpose of creating a more useable history within Kodi.

Another suggestion if you would like everything (or most things) shown as history inside Kodi is to use the "Play to Kodi" Chrome browser extension rather than watching the videos directly. Then these watched videos will show in Last Played as a history.

I do this often because I tend to multitask, so I play the video on an alternate screen/device close to me (sometimes while continuing to browse/search on YouTube with the PC)

PS: If you have the Kore remote installed on your Android device you will also be able "Play to Kodi" from the YouTube mobile app.

Hey man, since you reccomended the Chrome send to Kodi thing, I googled to see if there was one for Firefox and there was and it works awesome as well for this. Thanks for the suggestion because I would have never found this. That is primarily why I use my history, in order to find videos I watch on my pc, but this is better. So, the Last Played app in combination with this send to Kodi app worked out great.

https://addons.mozilla.org/en-US/firefox/addon/send-to-xbmc/?src=search