Kodi Community Forum
[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)



- Jason102 - 2011-05-23

I'm afraid that mwkurt is right, I can't help you.

What format is your stuff in? MKV?


- swaq - 2011-05-23

Thanks a lot for the response. Too bad it can't be done. Normally we'll pick a movie to see, but it would have been great with a childrens-movie category, for whenever family is visiting. I guess i'll have to re-rip all the relevant DVD's in the next winther Wink

EDIT: I would say that 90% of the movies has been ripped to a ISO and the last 10% just in VIDEO_TS folder.
Otherwise it works perfectly with the few movies I have ripped to AVI and MKV.

I guess Smart Playlist could be used, to selecting out movies in a specific format, so I only get the movies from the Childrens-folder, that has been ripped?


- Jason102 - 2011-05-23

I'd recommend trying to set up some sort of batch Handbrake conversion. A quick search brought me to this. I haven't actually used the batch UI myself (I am a big fan of Handbrake, though), but it looks like it may do what you need.


- swaq - 2011-05-23

Thanks. Will give it a go. Guess I could setup a batch in the evening, start it in the morning and let it rip all day.

But I have to rip it to a mkv(or similar containter) right? I guess it could do around 5-8 movies in a workday?


- GJones - 2011-05-24

swaq Wrote:Thanks. Will give it a go. Guess I could setup a batch in the evening, start it in the morning and let it rip all day.

But I have to rip it to a mkv(or similar containter) right? I guess it could do around 5-8 movies in a workday?

A straight rip using makemkvcon (repackaging the current content instead of reducing its size/bitrate) would only take about 20 minutes per movie even on a slow machine.

makemkvcon --progress=-same --min-length=3600 mkv file:<path to the VIDEO_TS folder> all <destination folder>

if they are in VIDEO_TS folders.

makemkvcon --progress=-same --min-length=3600 mkv iso:<path to the ISO file> all <destination folder>

if they are in ISO files.

Destination folder should be specific to the movie (D:\movies\Some Movie (1999)). Put all paths in ""s. The min length will get only the chapters of an hour or greater.


- User 55003 - 2011-05-25

Hi Jason102, just tried out your new stable-pre update but hav'in hang probs with (XP/Win7) on startup and channel config..
Pulling "Jasonra-XBMC-PseudoTV-v1.0.0-45-g5f2cbcd.zip" by default from your stable-pre repo.. (thought it would be v1.2...) Huh Maybe pushed to wrong branch ?Eek
Did get it to work briefly for a while on may desktop, but on restart it be borked. No biggie v1.2 still rocks Smile


- Jason102 - 2011-05-25

The name of the file doesn't really matter, you downloaded the correct thing. This means (unfortunately) that there is something broken in the build. This is the reason I put things into stable-pre before they get pushed to the official branch.

So first question: are you running Dharma or a nightly build? Any chance of getting a debug log?


- User 55003 - 2011-05-25

Jason102 Wrote:The name of the file doesn't really matter, you downloaded the correct thing. This means (unfortunately) that there is something broken in the build. This is the reason I put things into stable-pre before they get pushed to the official branch.

So first question: are you running Dharma or a nightly build? Any chance of getting a debug log?

Dharma 10.1, dev builds are a bit unstable for me at the mo Smile brb with log..

http://pastebin.com/7yDe5De8


No Valid Channel Data Found - mungki - 2011-05-25

Hi Jason,

i've been trying to get your Add-on working for the last few days (becuase it looks amazing) with little success, it starts up, updates all the channels then displays an Error "No Valid Channel Data Found" i have a large media library (so im guessing its not that) i've also tried defining my own channels in the channel config and also by making smart playlist's, each time i've redefined the channels i have forced a script reset in the options,

hope you can help

My Details
OSX Nightly Build 25th May (also tried older versions 18th - 25th)
Stable Pre 1.2.0

(i have included a log but its the first time so let me know if you need anything else)
http://pastebin.com/2rfntCT3

Mungki


- Jabroni - 2011-05-25

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?


- sugarlumps - 2011-05-26

Feature request:

The ability to create a porn channel.

I don't have porn added to my database library, I just have a few clips and movies stashed away in a folder that you have to access under "Videos" (vs. "TV" or "Movies").

It would be pretty cool if you could specify a folder (not in the database) and the files contained within would make up that channel.

Or perhaps this feature already exists and I've just not looked hard enough? I'm perfectly comfortable messing around with scripts and stuff.

Anyway, just an idea, because no TV solution is complete without (optional) porn - except this channel wouldn't just show breasts and cost £4.99 after the first 10 minutes.

Just something to think about...


- Elmojo - 2011-05-26

Hi all,
I feel really stupid asking this, but how do you actually see the EPG?
I've seen posts that say "press the [ok] button", but they don't say where exactly.
If I press the [ok] button, it just selects whatever is currently highlighted within XBMC.
If I navigate to the program add-ons and select PseudoTV, nothing happens.
I have been able once or twice to get it to display a blue banner showing "now playing" info, but I can't ever see the whole guide.
When this occurs, it seems like the EPG is running, but I can't see it.
For example: I've added TV Time to favorites, so from teh home screen, I select favorites, then TV Time. I see the channel initializing screen, then I'm back to seeing the home screen. At this point, I can't interact with the home screen at all. When I press buttons on the remote, I hear navigation sounds, but nothing else happens.
I'm running XBMC 10.1 on Windows 7 x86, SP1.
Thanks!
-Mike


- zepfan - 2011-05-26

Elmojo Wrote:Hi all,
I feel really stupid asking this, but how do you actually see the EPG?
I've seen posts that say "press the [ok] button", but they don't say where exactly.
If I press the [ok] button, it just selects whatever is currently highlighted within XBMC.
If I navigate to the program add-ons and select PseudoTV, nothing happens.
I have been able once or twice to get it to display a blue banner showing "now playing" info, but I can't ever see the whole guide.
When this occurs, it seems like the EPG is running, but I can't see it.
For example: I've added TV Time to favorites, so from teh home screen, I select favorites, then TV Time. I see the channel initializing screen, then I'm back to seeing the home screen. At this point, I can't interact with the home screen at all. When I press buttons on the remote, I hear navigation sounds, but nothing else happens.
I'm running XBMC 10.1 on Windows 7 x86, SP1.
Thanks!
-Mike

Have you made any channels yet?


- sugarlumps - 2011-05-26

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?

I just think that being able to view and control the EPG in the browser would be fantastic.


- Jason102 - 2011-05-26

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:

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).