[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
|
- Jason102 - 2011-02-12 A couple of big changes in the stable-pre branch, if anyone wants to check it out. I just need to do some additional testing before I release it. Changes: Much faster channel creation speed. If a channel doesn't have any items (no durations, or just no matches) then it will be skipped...the script will still run without it. Also, if there is some issue with playing a channel while the script is running, that channel will be removed and the script will just move on to the next one. Minor changes in the way files are read, to keep with the standard. Put in jtucker1972's change involving parsing mixed playlists. Try it out, report any bugs. If everything goes well, I'll do 1 or 2 more things and release this version. At this point the script is nearly ready to be put into the official repo, so report any bugs that you find! - jtucker1972 - 2011-02-12 mwkurt Wrote:Could one of you guys possibly tell me what I am doing wrong? When I open a playlist that I created I do not see any times accumulating. I do this inside of XBMC. IS there something that I am missing? Could you please give me instructions on what you are doing to accomplish the time accumulation that you all see? Couple things here. 1. It sometimes can take a minute or two for it to begin, so be patient. 2. If it still doesn't start calculating the duration, check the shows in the playlist for nfo files. In one case I had, I had nfo files for the shows which had <fileinfo> data but no <durationinseconds>. This resulting in XBMC giving it a 0 duration in streamdetails table and XBMC would not update it! I guess it only updates once if there is no record in streamdetails for the file. To fix #2, I had to remove my source to clean up the database to remove the incorrect streamdetails information. I then made sure to delete any nfo files in the source I was adding. I then re-added the source location and rescanned. Once completed, I opened the playlist and watched XBMC recalcuate the durations successfully. - jtucker1972 - 2011-02-12 Jason102 Wrote:A couple of big changes in the stable-pre branch, if anyone wants to check it out. I just need to do some additional testing before I release it. I'll download and start testing for you. - zepfan - 2011-02-12 Jason102 Wrote:A couple of big changes in the stable-pre branch, if anyone wants to check it out. I just need to do some additional testing before I release it. I'm on it! Let's hope we have less issues than last time! - jtucker1972 - 2011-02-12 @Jason102, whenever you rebuild the channel list, there needs to be a routine to remove the previous .m3u files. Currently, the script doesn't. So, in my test, my last channel was set to an empty playlist. However, the EMG just pulled my previous channel_x.m3u for that channel #. This was due to that channel_x.m3u still being in the cache. I would think this would be a small fix to add a function to delete the cache before creating the new channel .m3u's. Load time's are much faster. About 1 sec per channel from my initial limited testing. - jtucker1972 - 2011-02-12 @Jason102, still have issue with using & in the Channel Name. This will require < & > characters to be escaped in the python code. Whenever the script does hang for this reason, pressing the Cancel button doesn't exit the script. It just hangs. On the positive: Channel seeking is working great! Remembering which channel you last were watching is working great! Keep up the great work! - zepfan - 2011-02-12 Most things are working fine. I had another famous freeze that i seem to be having with this script. I'm going through the log, so i'll see if i can figure it out. Code: ERROR: ClearBlock: Trying to clear non existent block /home/peter/.xbmc/addons/script.PseudoTV - Jason102 - 2011-02-12 @zepfan: Under what condition is this freezing? Channel creation? Bringing up the EPG? @jtucker1972: What channel name are you using? I tried the very simple "A&B", which worked without an issue. Also, can you give me steps to reproduce the "improperly using the cache file" issue? - zepfan - 2011-02-12 Jason102 Wrote:@zepfan: Under what condition is this freezing? Channel creation? Bringing up the EPG? Changing channels. After about the third channel loaded from the epg it freezes. I've been through the log, and can't find anything. I'll do a debug log again and see. - jtucker1972 - 2011-02-12 Jason102 Wrote:@zepfan: Under what condition is this freezing? Channel creation? Bringing up the EPG? "Action & Adventure TV" is the channel name that is causing it to freeze. To reproduce the cache issue, do the following. Create Channel_1 with playlist which returns results Create Channel_2 with playlist which does not return results, e.g. movies with year > 2011. Load the new channels and see if Channel 2 gets populated from the previous Channel_2.m3u instead of there just being Channel 1 returned. - jtucker1972 - 2011-02-12 zepfan Wrote:Changing channels. After about the third channel loaded from the epg it freezes. I've been through the log, and can't find anything. I'll do a debug log again and see. You may want to post your log so we can look at it. More eyes may spot something or help us reproduce the issue. - Jason102 - 2011-02-12 @jtucker1972: I still cannot reproduce the "&" issue. Can you please post a debug log? I've fixed (I think) the using an old cached file issue and updated the repository. If you get a chance, can you verify the fix? - zepfan - 2011-02-12 I can't seem to get it to do it again, so it might have been a fluke. Jason, I do have a request. Is there any way to make the font of tv show names and episode names bigger? I can't always read them from across the room. If you can tell me where i can do that, I'll start tweaking them myself to my liking. I'm mainly thinking of the info screen not the epg. - jtucker1972 - 2011-02-12 Jason102 Wrote:@jtucker1972: I still cannot reproduce the "&" issue. Can you please post a debug log? The old cache issue is fixed now. The other issue has to do with xml and my minidom code. It's a limitation. & is a special character in xml, so if I have "Action & Adventure" in the XML the dom code will break. However, if I have "Action & Adventure" the channel will load, but the Channel Name in the EPG will literally be "Action & Adventure" instead of "Action & Adventure". Not sure how to get around this limitation with the minidom which is the only xml parser available in the version bundled with XBMC. If we could do a replace("&","&") on the channel name prior to it being shown in the EPG then that would kind of work around it. - jtucker1972 - 2011-02-12 zepfan Wrote:I can't seem to get it to do it again, so it might have been a fluke. Maybe this could be configurable via the settings? |