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)



- zepfan - 2011-05-31

TheOddLinguist Wrote:How about Simplicity?

Sure. First thing tomorrow I'll get started on it. Any thoughts on what you think it should look like?

I was thinking of something along the lines of this http://i.imgur.com/I8GC2.png for the epg. Like the reFocus EPG, solid with no transparency.


- TheOddLinguist - 2011-05-31

zepfan Wrote:Sure. First thing tomorrow I'll get started on it. Any thoughts on what you think it should look like?

I was thinking of something along the lines of this http://i.imgur.com/I8GC2.png for the epg. Like the reFocus EPG, solid with no transparency.
Sounds good. I'm, unfortunately, of little help with design questions. I do like the look of the PseudoTV info screen in Confluence, but I don't know how well that style fits. ...and I have zero thoughts on the EPG. I'm sure you'll make something fantastic, though. Thanks for taking the suggestion...can't wait.


- mcorcoran - 2011-06-01

Jason102: Here's a full debug log http://pastebin.com/u86Ut0N1 let me if there's anything else I can do to help. And thanks for looking into it.


- mudwater - 2011-06-01

zepfan Wrote:After tomorrow I'm finally done with my own Forens*nix Linux distro!
In honor of celebrating my new (small) free time, are there any requests for skins that haven't been made yet?

How about redoing the epg for The Charmichael skin?


- anthony2483 - 2011-06-01

Is there any way to scroll through the epg by page? I'm used to using the ch+ and ch- buttons to scroll a page at a time on tivo and cable boxes.

Also I'm using xbmc 10.1 with a mapped network drive and pseudotv freezes occasionally and is sluggish at times. Network speed isn't really an issue otherwise any tips or changes I can make to resolve?


- zepfan - 2011-06-01

mudwater Wrote:How about redoing the epg for The Charmichael skin?

That one isn't mine, and I think it comes with the skin. Try asking in [url=http://forum.xbmc.org/showthread.php?tid=84970"] this thread. [/url]


- mwkurt - 2011-06-01

Hello,

I am using PseudoTV Rev1.2, with Dharma 10.1 on Windows 7 and am wondering of I am the only one having this problem.

It seems that when scrolling through the EPG, I will get a freeze condition every 5 seconds or so that will stay frozen for another few seconds. After it passes the EPG works fine for another 5 seconds or so. I do have the webserver enabled. I know that this is due to the background updating and there is really nothing that can be done about it. But I have tried it on 2 of my computers at home with the same results.

So is this as good as I can expect the EPG to work? Is this happening to others who use PseudoTV with automatic updating selected?
Is there anything else I can do to help the situation?

Thanks,
Mark


- Jason102 - 2011-06-01

Quote:Jason102: Here's a full debug log http://pastebin.com/u86Ut0N1 let me if there's anything else I can do to help. And thanks for looking into it.

Heh, I knew this code would come back to bite me in the ass. I wrote some crazy code to try and mount SMB drives when the file wasn't available. It was written primarily for Eden which doesn't allow Python scripts to access SMB files directly, making my video parsing code useless. So, yea...I guess I need to revisit that code. In the mean-time, if you do a "clean library" I believe it will remove the missing video file that you have and resolve the issue.

Quote:Is there any way to scroll through the epg by page? I'm used to using the ch+ and ch- buttons to scroll a page at a time on tivo and cable boxes.

Page up and page down are good ideas, but I can't use the ch+ or ch- buttons since those are just the arrow keys which are used to navigate the EPG. I've though about doing an entire key configuration utility at some point...maybe I'll throw that one in there.

Quote:pseudotv freezes occasionally and is sluggish at times
Quote:freeze condition every 5 seconds

Ok, there are a couple of different things that can cause freezing, and both are related to the background updating. Get the latest stable-pre and set channel updating to something other than Automatic to disable the background thread.

The first cause is that the JSON call is preventing key strokes from being used. I can't prevent this. The symptom will be that the EPG and any other controls don't respond as expected. To help prevent the issue, turning on the XBMC webserver should help quite a bit. mwkurt says that it doesn't help in his case, but it definitely helped on my system.

The second cause is that during said JSON calls it appears that XBMC doesn't buffer video. Since XBMC buffers about 20 seconds (I believe) worth of video and a JSON call can take up to about 15 seconds, you may run into a buffering issue if you use a networked drive, especially on wifi. The symptom of this will be pausing and buffering video, not EPG slowness.

Another possibility is that the background thread is just taking up too much processor usage. If you're using a slower machine that barely plays video without skipping, the background thread may just push it over the top.

I'm looking into fixing at least the first issue. In the mean time, disable the threading.


- mwkurt - 2011-06-01

Jason,

If we disable the background thread, how will this affect the replenishing of channels in the future?

How will channels be updated if this is turned off?

Thanks,
Mark


- Jason102 - 2011-06-01

Well, if you turn it off then it won't ever update. Turn it to every week...I think that's probably the best option. Again, this is just a temporary solution while I try to find a better way to do this.


- mcorcoran - 2011-06-02

Jason102: From that log file how can I tell which file is causing the problem? I tried clearing the library and that didn't fix the issue. When I removed the whole Grey's Anatomy show from my library it seemed to work for a bit, finishing the updating of channels 1-3 but then freezes again at channel 4. When I look at the logs it looks similar to the one I posted earlier but this time dying on a new show. I wondering if it's a permission issue or something deeper that I'm not aware of. Again thanks for your time.


- Adam B. - 2011-06-02

My pseudotv is also locking up when updating channels. It just sits as "Updating Channel 2". This is with the latest version from stable-pre.

I'm also using openelec, but I'm accessing my shares over NFS and reading from a mysql database.

Here's my debug log: http://pastebin.com/MtkmNHgj


- Jason102 - 2011-06-02

Wow, you guys are seeing separate issues that I've never encountered.

So what I'll do is add some debugging code to stable-pre and, if you two don't mind, you can both get another debug log. This time, just to make sure I get the whole thing, please run PseudoTV and encounter your respective issue, and then make sure and completely exit XBMC before grabbing the log. I'd really appreciate this. If all goes well, I'll fix your issues today! I'll update this post when the changes are committed.

EDIT: Ok, the changes are up in stable-pre.


- mcorcoran - 2011-06-02

Jason102: Will do first thing when I get home tonight. Should be in about 6 hours or so.


- mcorcoran - 2011-06-03

Here's my debug log: http://pastebin.com/rfUAGgT6 Hope that helps. Let me know if there's anything else I can do.