[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
|
- zepfan - 2011-02-07 Jason102 Wrote:New release! Thanks to Sranshaft for the awesome new skin (not to mention coding and testing), Bridgman for the nice new icon, and zepfan for his constant testing of broken code. Lol! Anytime. Thanks for not killing me over those long log files! Let me know on the next test, I'll be the Linux tester! - pcvii - 2011-02-07 I noticed the time is off for some shows i'll be like your watching this and your actually watching something else. :) - carrot_top - 2011-02-07 This sounds like a great script! Will this work with live streams? - Jason102 - 2011-02-07 It will not work with live streams, that's a bit beyond the scope of the project. I may look into including some Internet streams as channels at some point, but it's not a priority. @pcvii: Can you explain? When you pull up the EPG it shows something that isn't on? Or is this related to the new info window that pops up? - tungmeister - 2011-02-07 Jason102 Wrote:It will not work with live streams, that's a bit beyond the scope of the project. I may look into including some Internet streams as channels at some point, but it's not a priority. Not sure if pcvii mean what you think he does but I had an issue last night of the info window still displaying the previous episodes information at least several minutes into the next program (didn't look again after that). - ederson - 2011-02-07 I`ve just installed this and i`m loving it !!! Great addon I don`t know is this exists and i`ve missed it but i think it would be helpfull if in the epg or the info dialog there was a watched flag. - jtucker1972 - 2011-02-07 Jason, still having some issues with the mixed playlists. It is hanging trying to Update channel list. Here is the log. <begin log> 09:12:00 T:2172 M:1791311872 DEBUG: script.PseudoTV-TVOverlay: findMaxChannels 09:12:00 T:2172 M:1791311872 DEBUG: script.PseudoTV-TVOverlay: findMaxChannels return 1 09:12:00 T:2172 M:1791311872 DEBUG: script.PseudoTV-TVOverlay: readConfig 09:12:00 T:2172 M:1791303680 DEBUG: script.PseudoTV-TVOverlay: Auto off is 10800 09:12:00 T:2172 M:1791303680 DEBUG: script.PseudoTV-TVOverlay: Force Reset is True 09:12:00 T:2172 M:1791303680 DEBUG: script.PseudoTV-TVOverlay: Show info label on channel change is True 09:12:00 T:2172 M:1791299584 INFO: Loading skin file: DialogProgress.xml 09:12:00 T:2172 M:1792274432 DEBUG: ------ Window Init (DialogProgress.xml) ------ 09:12:00 T:2172 M:1792266240 DEBUG: script.PseudoTV-TVOverlay: makeChannelList 1 09:12:00 T:2172 M:1792266240 DEBUG: script.PseudoTV-TVOverlay: getSmartPlaylistType C:\Users\Administrator\AppData\Roaming\XBMC\userdata\playlists\video/Channel_1.xsp 09:12:00 T:2172 M:1792262144 DEBUG: script.PseudoTV-TVOverlay: getSmartPlaylistType return mixed 09:12:00 T:2172 M:1792262144 DEBUG: script.PseudoTV-TVOverlay: buildMixedFileList <last entry for PseudoTV> I have to Alt-F4 to close XBMC. Canceling the update doesn't work. Here are the playlist xml I am using. I verified the episode and movie playlists return shows. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <smartplaylist type="mixed"> <name>Current TV Mixed</name> <match>one</match> <rule field="playlist" operator="is">get-current-episodes.xsp</rule> <rule field="playlist" operator="is">get-current-movies.xsp</rule> <limit>50</limit> <order direction="ascending">random</order> </smartplaylist> get-current-episodes.xsp <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <smartplaylist type="episodes"> <name>Current TV</name> <match>all</match> <rule field="airdate" operator="inthelast">2 weeks</rule> <limit>50</limit> <order direction="ascending">airdate</order> </smartplaylist> get-current-movies.xsp <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <smartplaylist type="movies"> <name>Current Movies</name> <match>all</match> <rule field="year" operator="greaterthan">2009</rule> <rule field="videoresolution" operator="lessthan">720</rule> <limit>25</limit> <order direction="ascending">random</order> </smartplaylist> I'm going to continue to tinker around with it to see if I can figure out why it won't load. As you can, I am starting with a pretty simple mixed list to start. *updated to remove spaces in filenames. Still doesn't load channel. * - Jason102 - 2011-02-08 jtucker1972 and I have resolved the issue that he was having. I'm not releasing a fix at the moment because I hope the bug isn't prevalent enough to warrant it. If others are seeing the same thing, though (mixed playlists freeze the script), tell me and I'll make a new release. - jtucker1972 - 2011-02-08 Jason102, I just sent you some revised code for the buildMixedFileList def. It used the minidom so there can be unlimited playlists as well as it reads the order by from the playlist. This will provide a lot more flexibility when creating these "mixed" playlists and allow for more control. I believe the original code was limited to reading in 3 playlists, but maybe that is just my Dharma Win 7 64 bit issue. - TheOddLinguist - 2011-02-08 For future reference...if PseudoTV freezes like that, the log will usually have more information after you Alt-F4 (or Force Quit or whatever). Since it'll usually include more details on the method that actually caused the freeze, that may end up being helpful. (I've certainly run into that while testing things.) Just a friendly note...hehe - jtucker1972 - 2011-02-08 the original code opens the file and reads through it line by line and determines which lines are rules and then parses out the playlist filenames. the version I sent Jason uses minidom to read through the xml document which is the format the playlists are stored in. It's more efficient and allows for theoretically unlimited number of playlists since it iterates through each playlist node in the xml. I also am able to get any other node in the playlist xml, e.g. order, limit, etc. Jason's initial version automatically randomized the mixed playlist which would prevent a user like @steppedup from having the control of the order different shows played in. My updated version reads in the <order> value in the mixed playlist and will randomize if the mixed playlist's order is set to random. I hope I am not stepping on Jason's toes. I am very excited about the possibilities of this script. - jtucker1972 - 2011-02-08 TheOddLinguist Wrote:For future reference...if PseudoTV freezes like that, the log will usually have more information after you Alt-F4 (or Force Quit or whatever). Since it'll usually include more details on the method that actually caused the freeze, that may end up being helpful. (I've certainly run into that while testing things.) Just a friendly note...hehe The problem was it wasn't telling me anything. Never did. It would just stop after logging that it was reading the file. It was strange. Jason's updated code fixed the issue, but I was running into other limitations. - jtucker1972 - 2011-02-08 steppedup Wrote:It would be awesome to mimic the rhythmic nature of movies that keep us interested. Here's a sample "PseudoTV mixed" playlist I have setup. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <smartplaylist type="mixed"> <name>make-movie-mix</name> <match>one</match> <rule field="playlist" operator="is">get-action-movie.xsp</rule> <rule field="playlist" operator="is">get-comedy-movie.xsp</rule> <rule field="playlist" operator="is">get-drama-movie.xsp</rule> <rule field="playlist" operator="is">get-adventure-movie.xsp</rule> <rule field="playlist" operator="is">get-crime-movie.xsp</rule> </smartplaylist> Each get playlist returns one (1) random movie from that genre. My version of the buildMixedFilelist loops through each playlist which returns the one movie. Each show is added to the playlist in the same order as they are listed in the mixed playlist so you have some control of the ordering. Since I am not passing the <order> information, no randomization is done. Here is the random 5 movies the above grabbed. Home Alone Lilo and Stich 44 Inch Chest Hellfighters Moon If I didn't want my Comedies to contain any animation, I could add a rule to the get-comedy-movie where it excluded animation genre. The possibilities are endless. - ryan03rr - 2011-02-08 jtucker1972 Wrote:the original code opens the file and reads through it line by line and determines which lines are rules and then parses out the playlist filenames. thanks man... wish i could contribute as much as you have to this little project.... my skills just are not there yet...! (oddlunguist/ jason too) i dont see how this couldnt be incorporated into the next version of xbmc...... its sooo damn usefull. web content plugins are cool and everything..... i just seems i keep just using this since its so pailless once setup! it changed the way i use xbmc from..... only when i can think of "what to watch" to "background noise" needless to say.... thanks! SAT TV,s only use to me just got replaced!!! - jtucker1972 - 2011-02-08 ryan03rr Wrote:thanks man... wish i could contribute as much as you have to this little project.... my skills just are not there yet...! (oddlunguist/ jason too) My piece of code was nothing. I am no programmer. It took me 5 hours to read up and code the small piece I did. python and xml, oh my! My brain still hurts. For those interested in helping me test my upcoming PseudoTV Channel Kit let me know. The kit will be different from the packs as it will allow you to build your own channels based on a set of playlists. The packs will have preset channels already configured. I figured there would be those who would just want a general set of channels and those who will want to create their own. |