2011-05-26, 15:44
Whew, lots to respond to.
Steveb: I see the issue that you had. That code didn't change between 1.20 and the stable-pre version so I'm not sure why one works but not the other. Even so, the problem is valid and I've checked in a fix. If you get a chance, can you try out stable-pre again and see if it's working properly?
mungki: This is a tough one. It honestly appears to be an issue with the latest daily XBMC builds. Here's what I see in the logs:
The first line is the PseudoTV function that issues the JSON call. The second line is XBMC actually running the database query. It shows that it's running a proper query, so XBMC seems to be doing the correct thing. The third line, though, shows that the data returned to PseudoTV is completely empty. I'll look around on the forums to see if I can find more people with this issue. For the moment, I recommend using Dharma.
I run into this problem as well on my system. Any sufficiently large single collection will end up dominating. The problem is, of course, how can you balance forty episodes of show 1 vs five episodes of show 2? Do you actually want a precise mix of one episode of show 2 per seven episodes of show 1? Do you want show 2 to repeat 7 times in the span it takes to show all of show 1 once so that they can be a 1:1 mix? I haven't been able to answer these questions, so I haven't messed with it yet. If you have a recommendation, I'd love to hear it.
sugarlumps: Hmmm. Presuming XBMC could scrape the files, you should be able to add a porn genre and then a channel using that genre. If you can't scrape, then you can't currently do this. I have had the request in the past to do folder-based channels. I'll add it to my list of to-do, just know that it's a lower priority. For the time being, you may want to look into TV Time. It uses my code as a base, so he has all of my features, but a bunch of other stuff is added on top. I believe he has folder-based channels, but the script may or may not be a bit unstable at the moment.
There is no web interface, and this is actually the first request I've received for one. What does everyone else thing? I personally question the usefulness of it, but perhaps I'm not considering the proper scenario.
Elmojo: After starting PseudoTV, you say that nothing happens. I'm confused. Literally nothing changes? Note that it may take a few seconds (I've seen it take as many as 5) to actually start to do anything. If you see no chance, I'll need a debug log (check the XBMC wiki for how to get one).
Steveb: I see the issue that you had. That code didn't change between 1.20 and the stable-pre version so I'm not sure why one works but not the other. Even so, the problem is valid and I've checked in a fix. If you get a chance, can you try out stable-pre again and see if it's working properly?
mungki: This is a tough one. It honestly appears to be an issue with the latest daily XBMC builds. Here's what I see in the logs:
Code:
18:36:37 T:2953850880 M:584830976 DEBUG: script.pseudotv-ChannelList: sendJSON
18:36:37 T:2956091392 M:584790016 DEBUG: RunQuery took 18 ms for 40 items query: select * from episodeview WHERE (strTitle LIKE 'Chaos (2011)') OR (strTitle LIKE 'Hawaii Five-0 (2010)') OR (strTitle LIKE 'Rules of Engagement') ORDER BY RANDOM() LIMIT 250
18:36:37 T:2953850880 M:584712192 DEBUG: script.pseudotv-ChannelList: {"id":1,"jsonrpc":"2.0","result":{"files":null,"limits":{"end":0,"start":0,"total":0}}}
The first line is the PseudoTV function that issues the JSON call. The second line is XBMC actually running the database query. It shows that it's running a proper query, so XBMC seems to be doing the correct thing. The third line, though, shows that the data returned to PseudoTV is completely empty. I'll look around on the forums to see if I can find more people with this issue. For the moment, I recommend using Dharma.
Quote:Would it be possible add an option to balance the TV channel playlists so that shows with larger numbers of episodes don't dominate the channels?
I run into this problem as well on my system. Any sufficiently large single collection will end up dominating. The problem is, of course, how can you balance forty episodes of show 1 vs five episodes of show 2? Do you actually want a precise mix of one episode of show 2 per seven episodes of show 1? Do you want show 2 to repeat 7 times in the span it takes to show all of show 1 once so that they can be a 1:1 mix? I haven't been able to answer these questions, so I haven't messed with it yet. If you have a recommendation, I'd love to hear it.
sugarlumps: Hmmm. Presuming XBMC could scrape the files, you should be able to add a porn genre and then a channel using that genre. If you can't scrape, then you can't currently do this. I have had the request in the past to do folder-based channels. I'll add it to my list of to-do, just know that it's a lower priority. For the time being, you may want to look into TV Time. It uses my code as a base, so he has all of my features, but a bunch of other stuff is added on top. I believe he has folder-based channels, but the script may or may not be a bit unstable at the moment.
Quote:As far as I can tell, there is no web interface for PseudoTV. Would this be incredibly difficult to implement? Is it perhaps even in the pipeline?
There is no web interface, and this is actually the first request I've received for one. What does everyone else thing? I personally question the usefulness of it, but perhaps I'm not considering the proper scenario.
Elmojo: After starting PseudoTV, you say that nothing happens. I'm confused. Literally nothing changes? Note that it may take a few seconds (I've seen it take as many as 5) to actually start to do anything. If you see no chance, I'll need a debug log (check the XBMC wiki for how to get one).