[RELEASE] PseudoTV Addon: Virtual EPG and TV Channel Surfing Script - 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: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +----- Forum: PseudoTV / PseudoTV Live (https://forum.kodi.tv/forumdisplay.php?fid=231) +----- Thread: [RELEASE] PseudoTV Addon: Virtual EPG and TV Channel Surfing Script (/showthread.php?tid=90738) 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
316
317
318
319
320
321
322
323
324
325
326
327
328
|
- Sranshaft - 2011-04-01 @Jason: Uploaded the debug log where I open the add-on setting window > Open Channel Configuration window > delete the pre-made network channels (ABC, CBS, AMC, Bravo) > Close windows > Reopen windows to find the channels I just deleted there again. Another thought regarding the channel configuration window. You may want to add 'OK' and 'Cancel' buttons to the dialog. It seems counter-intuitive to have to escape out of the window. Normally that only happens when you don't want to change anything. Also, you may want to add a 'None' label for channels you don't want to have a playlist and therefore be inactive. And I know you said it'd be a bit difficult to skin that window but I'd really hope you'd at least reconsider it. Or at the very least try to add it to the add-on setting window (I'm pretty sure that's not possible though?). - Jason102 - 2011-04-01 I've uploaded another version that really has only a couple of additional lines of debugging. When you get a chance, can you download it and get the same log you gave me with the new version? I think you're right, Ok and Cancel buttons would be a good idea. I'll work on it. Again, I think you're probably right about the None label. As far as skinning goes, I don't really deny skinning the config, it may just be a bit of a pain. As long as the ID structure doesn't change, things should work if you skin it. If you come up with something, I'd love to include it. By the way, it wouldn't be possible to do what I did in the normal setting window. I tried for a while but ran into limitations pretty quickly. - jtucker1972 - 2011-04-01 Tried the latest pre-stable tonight. Still not saving the channel settings. Below is my debug log file. Debug Log - User 55003 - 2011-04-01 jtucker1972 Wrote:Tried the latest pre-stable tonight. Still not saving the channel settings. I found that if you Esc out of the settings window insted of selecting "ok" as usual it will save your settings, small bug.. The new channel config looks great, just skinning it now, keep up the good work - danz0l - 2011-04-01 Steveb Wrote:I found that if you Esc out of the settings window insted of selecting "ok" as usual it will save your settings, small bug.. The new channel config looks great, just skinning it now, keep up the good work Doesnt work for me, even on latest stable pre. - Jason102 - 2011-04-01 Damn, I see the same thing as Steveb, if I setup the channels and press Ok, all of my settings are lost. If I escape out, though, then they're saved. - jtucker1972 - 2011-04-01 maybe this is where having the OK or Cancel button would work better than the Esc. I always think of Esc as wanting to cancel what I did or back out of. It would also be more consistent with the XBMC settings where if you Esc it does not save unless you click the OK button. - Jason102 - 2011-04-01 As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept. - danz0l - 2011-04-01 Jason102 Wrote:As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept. confirmed Jason. If i add some tv network channels then click cancel on exiting the plugin, they remain. Good catch. - Jason102 - 2011-04-01 Steveb's the one that did the work, I couldn't figure the damn thing out. - danz0l - 2011-04-01 Jason102 Wrote:Steveb's the one that did the work, I couldn't figure the damn thing out. Well done Steveb, at least we have a working solution now - jtucker1972 - 2011-04-01 Jason102 Wrote:As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept. You could write out the Channel Configuration settings to a separate ChannelConfigSettings.xml file so that XBMC doesn't overwrite it. - Jason102 - 2011-04-01 I've done essentially that. I have a new settings class that will work in all situations. It should be transparent to the user. At the moment it slows down the channel configuration tool and needs to be tested more to make sure it doesn't break anything. Still no Ok and Cancel buttons, but at least pressing Ok on the main settings screen should still save channel data. It's up in stable-pre. - jtucker1972 - 2011-04-01 Jason, you may want to add a dialog saying Saving Configuration. If I change a channel and then select the next channel before the script has saved the previous setting, it will load the previous channel. For example, Change Channel 1 Press Esc Select Channel 2 right away It shows Channel 1 instead of Channel 2 I'm puzzled why it is taking so long for the settings to save since this is a built in function you are using. Not sure how well it is going to work waiting 5 seconds between channel saves. On loading the configuration tool, it took 15 seconds. Very weird. Edit: I don't think it's the new settings. If I put a dialog to start before self.saveSettings() and close it right after, the dialog opens and closes in a split second. Not sure yet where in the process it is slowing down, but it's not in the saveSettings() function for sure. - Jason102 - 2011-04-02 Ok, new stable-pre version. Improved the speed of the new settings stuff, which affects the overall speed of the channel configuration. Added Ok and Cancel buttons to the same utility. Set the channel type to "None" as opposed to just a blank type to get rid of a channel. Some small random fixes. |