Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only - 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 [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only (/showthread.php?tid=79487) 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
RE: [RELEASE] YouTube (Video) Plugin - ujku10 - 2013-03-20 I read you, (As sparaxin says if you select the plugin to "Ask" what "Max video quality" to play back in it should play just fine Or Edit %USERPROFILE%\XBMC\addons\plugin.video.youtube\YouTubePlayer.py and comment out lines 217 and 218 Change: Code: if get("action") != "download": video_url += " | " + self.common.USERAGENT To: Code: # if get("action") != "download": # video_url += " | " + self.common.USERAGENT) I did everything Not play video youtube. sorry for my english (I can not speak well) thanks Couldn't locate video URL - quaternio - 2013-03-21 I just started getting the error "Playback failed couldn't locate video URL." This happened right after updating to Frodo v12.1 from a nightly. I tried going back to the nightly, and tried to change to "ask" for video quality, but I'm still having the problem (there are no selectable options for video quality when it asks). I also uninstalled the plug-in and reinstalled 4.4.3 from the repository, but that didn't help either. My log file when I tried to play two videos from my subscribed channels, and then tried play a searched video: http://pastebin.com/GwmzR9g2 RE: Couldn't locate video URL - razord93 - 2013-03-21 (2013-03-21, 00:04)quaternio Wrote: I just started getting the error "Playback failed couldn't locate video URL." This happened right after updating to Frodo v12.1 from a nightly. I tried going back to the nightly, and tried to change to "ask" for video quality, but I'm still having the problem (there are no selectable options for video quality when it asks). I also uninstalled the plug-in and reinstalled 4.4.3 from the repository, but that didn't help either.Ye It just happen to me too i did not update or anything but i guess Youtube changed something. Now i can't play anything Suddenly broken - Kaylakaze - 2013-03-21 -- Edited since this post is no longer relevant and was just more noise -- RE: Couldn't locate video URL - ezjacob - 2013-03-21 I have the same problem and did the following steps too. (2013-03-21, 00:07)razord93 Wrote:(2013-03-21, 00:04)quaternio Wrote: I just started getting the error "Playback failed couldn't locate video URL." This happened right after updating to Frodo v12.1 from a nightly. I tried going back to the nightly, and tried to change to "ask" for video quality, but I'm still having the problem (there are no selectable options for video quality when it asks). I also uninstalled the plug-in and reinstalled 4.4.3 from the repository, but that didn't help either.Ye It just happen to me too i did not update or anything but i guess Youtube changed something. Fixed - Kaylakaze - 2013-03-21 Fixed it. from line 299 in YouTubePlayer, change Code: if line.strip().startswith("yt.playerConfig = "): to Code: index = line.find("ytplayer.config =") sorry that the indents are not properly aligned in the code pasting This demonstrates why whenever you're scraping a web page, it's dangerous to assume where on the page something will be located. Youtube changed their page format so that ytplayer.config is no longer at the beginning of a line. RE: Fixed - xbmc_htpc - 2013-03-21 (2013-03-21, 00:48)Kaylakaze Wrote: Fixed it. from line 299 in YouTubePlayer, change Thanks for your input. I have tried amending as stated above. Unfortunately, nothing happens and the same error still occurs. Would you be able to provide your YoutubePlayer.py ? Thanks. ________________________________________________________________________________ Xbmc Frodo 12.1 Youtube 4.4.3 RE: Fixed - quaternio - 2013-03-21 (2013-03-21, 00:48)Kaylakaze Wrote: Fixed it. from line 299 in YouTubePlayer, change Tried to replace those lines with what you provided, but doing so breaks the plugin for me. But I know next to nothing about scripting. I suppose I should just wait until somebody compiles a zip file with the fix that I can install, rather than tamper with it myself. Thanks though. RE: [RELEASE] YouTube (Video) Plugin - De facto defa - Elbulus - 2013-03-21 Managed to work out in the end, i replaced from line 298 instead of 299, here is what is in mine from lines 297 till the break. http://pastebin.com/5kWkxNhn Pastebin is to hopefully get the spacing correct. PHP Code: for line in data.split("\n"): RE: Fixed - slayer9019 - 2013-03-21 (2013-03-21, 01:16)quaternio Wrote:(2013-03-21, 00:48)Kaylakaze Wrote: Fixed it. from line 299 in YouTubePlayer, change I have a feeling you pasted it directly (he did say it didn't indent right). Also at least for me it was from lines 298 to 306 that needed to be replaced. here is how it worked for me: Code: for line in data.split("\n"): RE: [RELEASE] - Elbulus - 2013-03-21 For those who might struggle with code here is the file modified for you, just drop this over the top of the old YouTubePlayer.py https://www.dropbox.com/s/q3ykhe2vn4j2z3q/YouTubePlayer.py Thank you Kaylakaze for working it out so quickly Code edit - adx1000 - 2013-03-21 The few lines of code from Kaylakaze worked a treat for me. Opened up youtubeplayer.py in notepad++, found the lines around 299, pasted in, saved, job done. I should think there will be a new version soon correcting this however. Thank you Kaylakaze! RE: [RELEASE] - xbmc_htpc - 2013-03-21 (2013-03-21, 01:34)Elbulus Wrote: For those who might struggle with code here is the file modified for you, just drop this over the top of the old YouTubePlayer.py Thanks! Worked like a treat. RE: [RELEASE] - quaternio - 2013-03-21 (2013-03-21, 01:34)Elbulus Wrote: For those who might struggle with code here is the file modified for you, just drop this over the top of the old YouTubePlayer.py Works for me, thanks The following and a few other attempts didn't work: RE: - Kaylakaze - 2013-03-21 You're right about the line numbers. I forgot I had added a line in another function for debugging output. And the big pain about Python code pasting is Python has to have indentation correct which is a nightmare. That's pretty much the only reason I hate Python so much. |