Release YouTube (IMPORTANT - READ FIRST POST) - 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 (IMPORTANT - READ FIRST POST) (/showthread.php?tid=200735) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
RE: YouTube (IMPORTANT - READ FIRST POST) - bluegreen - 2015-12-28 (2015-12-27, 10:38)landolosto Wrote:(2015-12-27, 09:40)bluegreen Wrote: I tried setting my own Key, Id, and secret using Google api, and it would say login failed. So I reset the addon to default, I login using the two activation codes, but I can't access the subcriptions/popular right now/subscripts/browse channels/etc. it states "Exception in ContentProvider Unknown kind". Yes I created a browser key and an oath key, and copied and pasted it over every available slot, even under the older Kodi versions in that file. RE: YouTube (IMPORTANT - READ FIRST POST) - ykhehra1 - 2015-12-28 My api key was working fine on 5.1.12. But on 5.1.15 and 5.1.16 it give 'invalid credentials' error. RE: YouTube (IMPORTANT - READ FIRST POST) - blachanc - 2015-12-28 (2015-12-27, 05:54)landolosto Wrote:(2015-12-27, 04:27)codemonkey76 Wrote: Perfect, got it working now, that was the extra hint i needed. Can anybody confirm that theses two keys are the right one to use? I fail at the second code login (code does not appear) Code: /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client Code: 03:14:05 70.905159 T:1718338592 NOTICE: [plugin.video.youtube] Running: YouTube (5.1.16) on Isengard (15.2) with Python 2.7.9 Thank you, Ben RE: YouTube (IMPORTANT - READ FIRST POST) - bromix - 2015-12-28 Argh...please do not change the YouTube-TV KEYS!!!! The other ones I don't care. But you'll break the addon. And if you change the key by yourself...be aware, that you need to delete the addon data folder...because you must generate a new token via the login process...otherwise you get an invalid credentials. RE: YouTube (IMPORTANT - READ FIRST POST) - lonjemoco - 2015-12-28 Hi all, I'm writing an addon for a video website that points to youtube playlists. In my code, I'm trying to call youtube's addon. I use the following call: Code: RunPlugin(plugin://plugin.video.youtube/play/?playlist_id=PLCnTdQ_0mlpKl36Zy_1Y4Ic2s5DxP8K45&order=shuffle) There call indeed loads the playlist into the queue, but it doesn't automatically start playing. The log doesn't show anything suspicious. Any idea or workaround? Cheers! LM RE: YouTube (IMPORTANT - READ FIRST POST) - blachanc - 2015-12-28 (2015-12-28, 10:18)bromix Wrote: Argh...please do not change the YouTube-TV KEYS!!!! The other ones I don't care. But you'll break the addon. Hi Bromix, Understood, but you cannot blame us for trying to keep your baby alive. The credit expiration is a real show stopper. Did you select an heir to take over your work? Ben PS:If it is simply a matter of "be patient", than ok, I am totally fine with that. but based on your first post I feel more like I am in a EOL support situation. PS2: even after the addon re-install, the keys I generated do not seem to work. As soon as I place back the original ones, the two codes are displayed, and the addon works (it is 11AM here (UTC-5). The credit expiration happens at around 1AM). RE: YouTube (IMPORTANT - READ FIRST POST) - McButton - 2015-12-28 I'd say if you have personal reasons, cut ties completely. Family is more important. The internet nerds will figure it out eventually. Let em break it RE: YouTube (IMPORTANT - READ FIRST POST) - codemonkey76 - 2015-12-29 (2015-12-28, 17:54)blachanc Wrote:(2015-12-28, 10:18)bromix Wrote: Argh...please do not change the YouTube-TV KEYS!!!! The other ones I don't care. But you'll break the addon. I'm in the same boat, at least i can use the addon without the credit expiry thing. I just cannot login or access subscriptions or anything. Even with leaving the original youtube-tv keys in place. RE: YouTube (IMPORTANT - READ FIRST POST) - superwad - 2015-12-29 I literally used this guide to set me up: https://developers.google.com/youtube/v3/getting-started First, I enabled the YouTube Data API, v3. Then, after that was enabled, I created an API key. This is what you will put into the "key" field in the login_client.py file that has been mentioned elsewhere. Then, I created an OAuth 2.0 ID. The "Client ID" value goes into the "id" field in the login_client.py file, and the "Client Secret" goes into the "secret" field. Please note, when creating the API and OAuth keys, to use a name that you'd recognize. For instance, I used "Kodi YouTube (wad)" for mine, so I know if I'm hitting the right thing or not. I'm using Kodi 15, so I just commented out the three old values using # in front, and added (in the same order) my new values. If you're using a different version of Kodi, then find that version and replace those values. Don't try to create a new product, it's not worth the hassle. Then I zipped up the entire folder with no compression and dropped it into a place my Kodi install could access, and then installed an add-on from a zip file (make sure to uninstall the one from repo first). The last thing you'll want to do is set plugins to prompt for update, otherwise (like me) you'll possibly wake up and find the plugin updated over Christmas and blew away your fix. Hope that helps! RE: YouTube (IMPORTANT - READ FIRST POST) - codemonkey76 - 2015-12-29 (2015-12-29, 02:20)superwad Wrote: I literally used this guide to set me up: https://developers.google.com/youtube/v3/getting-started 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" RE: YouTube (IMPORTANT - READ FIRST POST) - blachanc - 2015-12-29 (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 was in the same boat, but finally solved this as well... Many thanks to superwad... 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/apis/credentials?project=trial-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/apis/credentials?project=trial-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 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 Code: https://console.developers.google.com/project thanks again to superwad. RE: YouTube (IMPORTANT - READ FIRST POST) - codemonkey76 - 2015-12-29 (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" you still able to login in the youtube app? RE: YouTube (IMPORTANT - READ FIRST POST) - blachanc - 2015-12-29 (2015-12-29, 07:18)codemonkey76 Wrote: you still able to login in the youtube app? Yes sir, I have access to all my playlists (this is what I was missing) Maybe you should try my keys: ( rest of login_client.py file is unchanged ) Code: # Modif by blac RE: YouTube (IMPORTANT - READ FIRST POST) - codemonkey76 - 2015-12-29 (2015-12-29, 07:41)blachanc Wrote:(2015-12-29, 07:18)codemonkey76 Wrote: you still able to login in the youtube app? thanks dude, that worked. RE: YouTube (IMPORTANT - READ FIRST POST) - TheLid - 2015-12-29 Hi all I think I've got the addon working in Kodi now and I can see that "My subscriptions" are synced between all my devices. However the "Watch later" option isn't working, I don't even see "Watch later" listed in the YouTube add on. I have checked in the addon config and I do have "Watch later" selected in the FOLDERS tab. I'm running addon version 5.1.16 on Kodiubuntu kodi version 15.2 and addon version 5.1.16 on Windows 8.1 kodi version 15.2 Same problem on both installs Any ideas please? Thanks |