• 1
  • 189
  • 190
  • 191(current)
  • 192
  • 193
  • 258
Release YouTube (IMPORTANT - READ FIRST POST)
I'm currently on KODI 15, so I only updated the API keys in the youtube-for-kodi-15 section. And I can see in the login_client.py file that there is a section for Jarvis... I'm assuming that I can add the same API keys that I updated to the V16 section...

But since this plugin is no longer being developed what do we do for versions after that is it just a matter of adding a new section for version 17? or will the plugin be broken after that because it needs an update to more than just the login_client.py file?
(2016-01-12, 22:35)DarrenHill Wrote: The Kodi wiki is a good place to look for support information. For example SSH (wiki).

Thank you. I was actually able to ssh to my Pi but got stuck there and didn't know what to do.

But at least I have learned that one has to enable ssh in Kodi first for this to work.

Can someone tell me where the "login_client.py" file is located in the Raspberry Pi version of OpenElec Kodi 15.2?

And since my OS is on a microSD card- doesn't it make more sense for me to remove the card, edit the file, then put it back in the Pi?

Thanks to all here for their patience and help. :-)
@activoice: If it's not being developed, it will break completely sooner or later. We just have to hope that someone steps up and offers to continue developing the addon. Kodi and all these addons are completely reliant by volunteers, so we have to trust in altriusm. Usually it works out OK.
(2016-01-13, 20:29)activoice Wrote: I'm currently on KODI 15, so I only updated the API keys in the youtube-for-kodi-15 section. And I can see in the login_client.py file that there is a section for Jarvis... I'm assuming that I can add the same API keys that I updated to the V16 section...

But since this plugin is no longer being developed what do we do for versions after that is it just a matter of adding a new section for version 17? or will the plugin be broken after that because it needs an update to more than just the login_client.py file?

+1-ish...

An excellent question, and a brick wall I seem to have run in to. I can confirm that "just" adding a new section for kodi 17 does not help - a very sad discovery.

My Intel NUC runs OpenELEC. Late in December I bumped the OS to a kodi 17/Krypton development build (courtesy of Milhouse), and immediately noticed the image rendering improvement (50-inch Samsung plasma). Woo-HOO !

At the time I was getting the common youtube problems, attributed them to the quota-exceeded condition, and pressed on with the flurry of Holiday activities.

Today I decided to follow the simple procedure for generating my own Keys & Secret (outlined above with great clarity... THANKS !!). Only when editing the "login_client.py" file did it occur that - since I'm on kodi 17 - the fix may not be so simple. I created a new section for "17/Krypton", dropped in the strings and logged in to youtube.

Despite doing the two-step authorizations... SUBSCRIPTIONS returns the dreaded "Exception in ContentProvider/Unknown kind" error, and both MY CHANNEL and PLAYLISTS error with "Access not configured. The API (YouTube Data API)...".

Can't seem to find any Jarvis builds compiled to OE... so it's either fallback to creaky old Isengard, or wait for the day when the miracle of renewed care-and-feeding of Bromix's masterpiece arrives.

HISTORY and WATCH LATER do not even appear as choices (despite checking them in configuration dialogue).

Oh Well... lots of other things to see.
::  LibreELEC 9.2.6 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.3-U5 (RAID-Z2)  ::
Honestly since there are no builds for Krypton yet, i wouldn't worry too much about it. Wait till there is at least an alpha before worrying about that

(2016-01-14, 04:48)gjwAudio Wrote:
(2016-01-13, 20:29)activoice Wrote: I'm currently on KODI 15, so I only updated the API keys in the youtube-for-kodi-15 section. And I can see in the login_client.py file that there is a section for Jarvis... I'm assuming that I can add the same API keys that I updated to the V16 section...

But since this plugin is no longer being developed what do we do for versions after that is it just a matter of adding a new section for version 17? or will the plugin be broken after that because it needs an update to more than just the login_client.py file?

+1-ish...

An excellent question, and a brick wall I seem to have run in to. I can confirm that "just" adding a new section for kodi 17 does not help - a very sad discovery.

My Intel NUC runs OpenELEC. Late in December I bumped the OS to a kodi 17/Krypton development build (courtesy of Milhouse), and immediately noticed the image rendering improvement (50-inch Samsung plasma). Woo-HOO !

At the time I was getting the common youtube problems, attributed them to the quota-exceeded condition, and pressed on with the flurry of Holiday activities.

Today I decided to follow the simple procedure for generating my own Keys & Secret (outlined above with great clarity... THANKS !!). Only when editing the "login_client.py" file did it occur that - since I'm on kodi 17 - the fix may not be so simple. I created a new section for "17/Krypton", dropped in the strings and logged in to youtube.

Despite doing the two-step authorizations... SUBSCRIPTIONS returns the dreaded "Exception in ContentProvider/Unknown kind" error, and both MY CHANNEL and PLAYLISTS error with "Access not configured. The API (YouTube Data API)...".

Can't seem to find any Jarvis builds compiled to OE... so it's either fallback to creaky old Isengard, or wait for the day when the miracle of renewed care-and-feeding of Bromix's masterpiece arrives.

HISTORY and WATCH LATER do not even appear as choices (despite checking them in configuration dialogue).

Oh Well... lots of other things to see.
Patch for Krypton (v17) tested and working:

Code:
resources/lib/kodion/impl/xbmc/xbmc_system_version.py | 3 +++
resources/lib/youtube/client/login_client.py          | 6 ++++++
2 files changed, 9 insertions(+)

diff --git a/resources/lib/kodion/impl/xbmc/xbmc_system_version.py b/resources/lib/kodion/impl/xbmc/xbmc_system_version.py
index eb2d8c2..30c8709 100644
--- a/resources/lib/kodion/impl/xbmc/xbmc_system_version.py
+++ b/resources/lib/kodion/impl/xbmc/xbmc_system_version.py
@@ -37,5 +37,8 @@ class XbmcSystemVersion(AbstractSystemVersion):
         if self._version >= (16, 0):
             self._name = 'Jarvis'
             pass
+        if self._version >= (17, 0):
+            self._name = 'Krypton'
+            pass

     pass
\ No newline at end of file
diff --git a/resources/lib/youtube/client/login_client.py b/resources/lib/youtube/client/login_client.py
index 4c84cee..db2a604 100644
--- a/resources/lib/youtube/client/login_client.py
+++ b/resources/lib/youtube/client/login_client.py
@@ -59,6 +59,12 @@ class LoginClient(object):
             'key': 'AIzaSyBbgC4PZ2_hUdqqX7MIgdg2fK1nohv1jrw',
             'id': '17932591024-8jruv1v7s78gipo7s17c91bnk26rqgpf.apps.googleusercontent.com',
             'secret': 'bK9T234WWhqzYdcQLif1L35K'
+        },
+        'youtube-for-kodi-17': {
+            'system': 'Krypton',
+            'key': 'AIzaSyB6-pMlWO_XmgdM15VKGeLH4QsipdToBas',
+            'id': '131835494776-s0ef9jorci9vl0kaa5sqslupqvlku6ej.apps.googleusercontent.com',
+            'secret': 'Fz9nnfVGoH6jiLc0iefvzZYM'
         }
     }

I use my own keys but in the above patch I copied the ones from Frodo.
I'm a little confused. Do the names below matter?

(2016-01-13, 01:57)activoice Wrote: Then go to
https://console.developers.google.com/apis/

Click on Credentials, then New Credentials, then API key, and select Browser Key, give it a name and click Create (this creates the KEY)

Then back to Credentials
Click on Credentials, then New Credentials, then OAuth Client ID, select Other, give it a name and click Create (this creates the ID and SECRET)

...and do the names have any relation to the code in login_client.py?

(2016-01-13, 01:57)activoice Wrote: youtube-for-kodi-15': {
'system': 'Isengard',
'key': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'id': 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbb.apps.googleusercontent.com',
'secret': 'ccccccccccccccccccccccccccc'
Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
(2016-01-14, 19:09)Uukrul Wrote: Patch for Krypton (v17) tested and working:

Ahhhhh... Hope Springs Eternal !

Thanks Uukrul for posting the patch !

I was hoping to implement it, verify my setup, and report back with success. Sadly (Sad), the new code behaves the same as before the patch update.

Not sure if it's important, but after modifying the code, I restarted kodi and performed a YT sign out/sign in operation. It knows me enough to show "My Subscriptions" tailored for me, but "Subscriptions", "My Channel" and "Playlists" all crap out. And still no "History" or "Watch Later" folders show in the display.

Alas, divining answers from the log usually eludes me, but for any willing Log-Sleuths, here is the log after a fresh reboot and attempts at the messed up YT functions -> LOG

Thanks in advance gurus, for tips & suggestions.
::  LibreELEC 9.2.6 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.3-U5 (RAID-Z2)  ::
So youtube is not working because addon isnt updated anymore for Krypton 17?
I can activate twice thru google, log in, search, get results... Only the video loads but hangs at start.
I'm not that tech savvy for implementing the above patch myself, so i guess i'll have to wait a bit till its easier for me Wink
(2016-01-15, 01:55)gjwAudio Wrote: I was hoping to implement it, verify my setup, and report back with success. Sadly (Sad), the new code behaves the same as before the patch update.

Try to delete your /userdata/addon_data/plugin.video.youtube and try again.
Just figured out how to ssh with putty. Located and opened the login_client.py file. But now im not shure how to apply that patch. Seems like i could mess things up if i do it wrong. First time using command line editing. Any advice? Thanks!
(2016-01-15, 15:00)Uukrul Wrote: Try to delete your /userdata/addon_data/plugin.video.youtube and try again.

@Uukrul

I did as you suggested, but no luck with the "simple fix". Now, double sad face (SadSad).

Only hope is for Log-Gurus to spot something (here).

Thanks for help and encouragement.
::  LibreELEC 9.2.6 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.3-U5 (RAID-Z2)  ::
(2016-01-15, 19:54)dsenseb Wrote: Just figured out how to ssh with putty. Located and opened the login_client.py file. But now im not shure how to apply that patch. Seems like i could mess things up if i do it wrong. First time using command line editing. Any advice? Thanks!

Hi dsenseb

What platform is your kodi running on ? There may be an easier way...

In my case:
kodi runs via OpenELEC (on an Intel NUC). My main desktop is a Windows machine. I have the NUC mapped as a network drive (to the desktop), and can do most maintenance tasks on kodi using familiar Windows tools.

For editing kodi's config & XML files, ALWAYS use Notepad++ (standard Notepad will mess up end-of-line characters). It goes without saying (Wink) to make a backup copy of anything before making changes.

The mods specified by Uukrul are quite simple to do (adding lines to existing code). Be sure to get yourself a personal Browser Key and OAuth Key/Secret before doing the v17 fix.

Hope this helps Blush
::  LibreELEC 9.2.6 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.3-U5 (RAID-Z2)  ::
(2016-01-15, 22:34)gjwAudio Wrote:
(2016-01-15, 19:54)dsenseb Wrote: Just figured out how to ssh with putty. Located and opened the login_client.py file. But now im not shure how to apply that patch. Seems like i could mess things up if i do it wrong. First time using command line editing. Any advice? Thanks!

Hi dsenseb

What platform is your kodi running on ? There may be an easier way...

In my case:
kodi runs via OpenELEC (on an Intel NUC). My main desktop is a Windows machine. I have the NUC mapped as a network drive (to the desktop), and can do most maintenance tasks on kodi using familiar Windows tools.

For editing kodi's config & XML files, ALWAYS use Notepad++ (standard Notepad will mess up end-of-line characters). It goes without saying (Wink) to make a backup copy of anything before making changes.

The mods specified by Uukrul are quite simple to do (adding lines to existing code). Be sure to get yourself a personal Browser Key and OAuth Key/Secret before doing the v17 fix.

Hope this helps Blush

Thanks for the reply.
I am running openelec on RPi2. The config and xml files i edit by putting the sd card in my laptop.
The login_client.py file is not visible on my windows so i was under the assumption the only way to edit that file is by ssh and putty
(2016-01-16, 00:57)dsenseb Wrote: Thanks for the reply.
I am running openelec on RPi2. The config and xml files i edit by putting the sd card in my laptop.
The login_client.py file is not visible on my windows so i was under the assumption the only way to edit that file is by ssh and putty

Uh-oh... no RPi experience here Rolleyes

Is the RPi file system "unknown" to Windows (I presume that's the OS on your laptop). Or maybe you need to enable "show hidden files" in Windows explorer ?

When the Pi is up and running kodi, can you see it on your home network ? If so, I would think you can use the same procedure I use.

PuTTY/ssh is needed when kodi is live and running... if you stick the SD card in another machine, you are simply accessing files on a removable medium, and the usual Windows tools should be fine.

But hey... ME-NO-Pi, so a word from the actual RPi users would be good just about now Nod
::  LibreELEC 9.2.6 RELEASE - Generic x86_64  ::  Intel 847 NUC  ::  KVR1333D3S9/4G  ::  Kingston SMS200S3/30G mSATA  ::  MS 1044 MCE keyboard  ::  GP-IR02BK remote  ::  Xonfluence  ::  10.9TiB on FreeNAS v11.3-U5 (RAID-Z2)  ::
  • 1
  • 189
  • 190
  • 191(current)
  • 192
  • 193
  • 258

Logout Mark Read Team Forum Stats Members Help
YouTube (IMPORTANT - READ FIRST POST)20