NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
EPG Updates

 
  • 0 Vote(s) - 0 Average
EPG Updates
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2010-07-19, 08:49 AM
Hi sub,

If you've got a minute, could you look over the following for me. It relates to the "Update EPG" command I have in the System plugin...

What I have seems to work (most of the time), but I'd just like to know I've done it the way you'd expect. The few problems I've seen relate to quitting while an update is in progress, or trying to record/tune live tv at the same time. Part of the problem is I'm developing with a different hardware/OS setup compared to what I've had stable for years with GBPVR, so I'm never sure whether problems are related to my setup, or nPVR's beta status, etc.

Stripping away the crud leaves:

Code:
class NSystemStatus : EPGManager.IEPGUpdateCallback
{
    void UpdateEPG()
    {
        new Thread(EPGRunner).Start();
    }

    void EPGRunner()
    {
        EPGManager epg = new EPGManager();
        epg.UpdateEPG(this);
    }

    public bool SetEPGUpdateStatus(string status)
    {
        // Display the status message...

        return true;
    }
}

I found it had to be done in another thread otherwise nPVR just hung while it ran.

There are references to EPG related things elsewhere in the libraries but this looked like the best way of doing it.

Is is ok to create a new EPGManager like that, or should I be retrieving one from elsewhere (factory method or somesuch)?

Thanks

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR and NRecord, between releases, updates p37307 1 2,636 2016-10-29, 01:08 AM
Last Post: sub
  GetPlaybackPosition - getting updates psycik 8 3,181 2013-08-11, 06:28 PM
Last Post: sub
  Checking for updates imilne 13 3,876 2012-01-21, 10:19 PM
Last Post: mvallevand
  A question about fast incremental updates ACTCMS 12 4,574 2009-12-07, 03:42 AM
Last Post: sub
  problems with screen updates from ActivateItem InVermont 2 1,812 2009-03-12, 04:45 PM
Last Post: InVermont
  my series skin updates reven 5 2,477 2005-03-20, 05:10 AM
Last Post: darrin75

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode