[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
|
- psike - 2011-01-18 Jason102 Wrote:@psike and dvdapex: It's worth noting that the channel order will be based on the playlist order. If you setup the playlist so that it plays all episodes in their broadcast order, the channel will maintain that. even if the script will do that you can't setup a playlist like that, thats the problem. at least i don't know how. - Jason102 - 2011-01-18 Without actually trying it, I bet you could create a playlist that had a rule as the tv show, a rule for playcount = 0, and then ordering by first aired. - psike - 2011-01-18 Jason102 Wrote:Without actually trying it, I bet you could create a playlist that had a rule as the tv show, a rule for playcount = 0, and then ordering by first aired. yes but then if you got show from 1980 and another one from 2010 it will play all episodes from the old show first. not really what i'm going for... - moontan77 - 2011-01-18 this in theory should list any new episodes aired in 2011 that you havent watched yet and order them by airdate. But for some reason it ignores the order direction field, at it just lists them by episode and alphabetically. Maybe it ignores order direction because airdate is used in a rule field aswell. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <smartplaylist type="episodes"> <name>a</name> <match>all</match> <rule field="playcount" operator="is">0</rule> <rule field="airdate" operator="after">2011-01-01</rule> <order direction="ascending">airdate</order> </smartplaylist> - Sranshaft - 2011-01-18 I have to confirm the issues Moontan is experiencing: the show on the EPG is different to the show playing. But it appears to be that that show is actually the previous one on the EPG. So on some channels the EPG is off by one show. I'm also getting some shows starting at the beginning rather then offset by the current time. And now a showstopper of a problem. When switching through the channels (not using the EPG) if I go beyond the maximum channels XBMC hangs and I have to force quit it. I haven't had a chance to look through the code and python isn't my strong suit but you may want to throw a check in there and have it wrap back to channel 1. I was having a brainstorm regarding the skinning aspects and I believe you may be able to get some ideas from the RecentlyAdded script. That gives the skinner access to each entry individually, eg: getting info for channel 3 I'd call something like ListItem[3].Name or Listitem[3].Icon. Just an idea and something to springboard off of. - Jason102 - 2011-01-18 @Sranshaft and moontan77: can one of you download the latest stable-pre build from the repository? It will require that you go to the script settings and force the resetting of all channels, but it may resolve several (if not all) of the issues you two are seeing. At least I'm hoping it helps... - Sranshaft - 2011-01-18 Things appear to working a bit better in regards to the EPG. I am still getting random crashes when switching the channel. Here's a debg log that hopefully you'll be able to track the problem down. http://pastebin.com/7UGktd5T The problem occurred when switching from channel 6 to 5. - Jason102 - 2011-01-18 Thanks Sranshaft, that log really helps. I'll figure it out as soon as I can. - Jason102 - 2011-01-18 @Sranshaft: Ok, I see where the problem is happening, I just don't know why. If you don't mind, can you again please get the latest stable-pre version and get a debug log? It should still crash, I just added logs to help narrow down the issue. Thanks for all the help, by the way. - mwkurt - 2011-01-19 Psike and any others who may care... This addon looks like the exact thing I have been wanting! I have done a lot of playing with Smart Playlist and have found the way to get your TV shows to play in either a random or sequential order. You may ask why does it matter? Well for some shows it doesn't, for some shows like 24, Lost, etc...shows that have a continuous story arc, it matters. So here is what you have to do. At least it is what I did and it worked for me. First you need to rename all of your shows....I used to have my tv shows named as follows: ShowName - S01E01 - EpisodeName.avi No matter what I tried I couldn't get the sequential order to work. It always played all epsiodes of one show, then the next and so on. I changed my show names as follows: S01E01 - EpisodeName.avi They are still in showname and season folder as follows: Showname Season 1 S01E01 - EpisodeName.avi I left off the show name and changed the sort by to "file" and it works. Now if I set the sort by to "random" I get random episodes of random shows to play, if I set the sort by to "file" I get a random selection of shows that will playback in sequential order. You can change your file names with any renamer application. I use TV Rename. Hope this helps someone out there. Mark - psike - 2011-01-19 Mark - I think you told me that once and i tried it but didn't got what I've expected. with you way the episodes will be in sequential order but it will play all s01e01 from all shows before start playing s01e02. - Sranshaft - 2011-01-19 Sorry it took a while to get back to you Jason. Got it installed this morning and got it to hang again. Here's the debug log http://pastebin.com/VwgS5xLN It didn't crash the first couple of times but I did notice it seems to be crashing on the same channel. On the times it didn't crash, Shaun the Sheep would start for a brief second and then it would switch to the correct show. The time it did crash Shaun the Sheep continued playing until I forced quit XBMC. - mwkurt - 2011-01-19 Psike, Could you maybe explain then what exactly you are wanting? If you don't want random shows to play sequentially, what is you are looking to do? Mark - Sranshaft - 2011-01-19 Found another crashing bug and this one has to deal with the EPG. If I skip ahead a lot, say a couple of hours, quick enough it causes XBMC to hang. I get a Not Responding in Task Manager and have to force quit. Here's the log http://pastebin.com/cpNKiP4G - Jason102 - 2011-01-19 Thanks Sranshaft. I may or may not be able to fix the hard lockup issue. I've encountered a couple of those in the past, and it's because XBMC is very finicky about what a script does at certain times. If you see it again, tell me...I'm just need to know how serious of a problem it is. As for your first issue, this seems to be a problem with XBMC, although I may be able to get around it. When changing channels, I ask where in the current playlist we are and it returns a normal integer. For some reason, I see that it is returning a really large floating point number in just that one case for you. What version of XBMC are you running? Maybe I can just fix it directly in that code. |