2015-12-29, 07:18
(2015-12-29, 06:34)blachanc Wrote:(2015-12-29, 03:28)codemonkey76 Wrote: I did the exact same thing, except when prompted for the first code after choosing sign-in and getting the first set of codes, i go to youtube.com/activate and enter the codes and login and click allow, but then kodi comes up with the settings page with a little notification in the corner saying "login failed"
I Finally solved this as well...
superwad Wrote:First, I enabled the YouTube Data API, v3.
1) Opps, forgot that first step Enabled it, and deleted the pre-generated keys (which are probably invalid)
superwad Wrote:Then,I created an API key.
2) did that: (https://console.developers.google.com/ap...al-youtube)
Code:youtube2 Dec 28, 2015 Browser AIzaSyC_CaSK0sJ1KPRDgcng9Fy1zB1I13db29k
superwad Wrote:Then, I created an OAuth 2.0 ID. The "Client ID"
This is wrong: not the right key type OTHER worked for me:
3) did that also (WEB APP)https://console.developers.google.com/ap...al-youtube)
Code:youtube2 Dec 28, 2015 Web application 644982163047-53i4nmnni83se6qkcpvegit5oia8nag4.apps.googleusercontent.com
3) did that also creating an Other type key.
Code:Name Creation date Type Client ID
youtube2 other Dec 28, 2015 Other 644982163047-thsi9qv33u1l45k2e72v6mtc489qievc.apps.googleusercontent.com
4) deleted the plugin.
5) installed the plugin from scratch
6) copied my modified login_client.py in /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client
and ended up with a working youtube...
Code:/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client
osmc@osmc-soussol:~/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client$ diff login_client.py ~/login_client_ORG.py
51d50
< # Modif by blac
54,56c53,55
< 'key': 'AIzaSyC_CaSK0sJ1KPRDgcng9Fy1zB1I13db29k',
< 'id': '644982163047-thsi9qv33u1l45k2e72v6mtc489qievc.apps.googleusercontent.com',
< 'secret': 'tYrDp53zooMUe2UQk4wcL7-V'
---
> 'key': 'AIzaSyBAdxZCHbeJwnQ7dDZQJNfcaF46MdqJ24E',
> 'id': '988476436049-l9sfcivj4jtm1f2ppcvvbgsli6kvtis0.apps.googleusercontent.com',
> 'secret': '_BEENv-a3-egDz_QKo5pGZCK'
Code:https://console.developers.google.com/project
Project Name Project ID Requests Errors Charges
trial youtube trial-youtube 14 0 $0.00
you still able to login in the youtube app?