NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 69 70 71 72 73 … 193 Next »
Way to run "pvrx2.exe -OnlyUpdateEPG" from the Plugin API

 
  • 0 Vote(s) - 0 Average
Way to run "pvrx2.exe -OnlyUpdateEPG" from the Plugin API
groovyclam
Offline

Junior Member

Posts: 19
Threads: 6
Joined: Jan 2008
#1
2008-02-09, 12:41 PM
Hi sub

I have made a great deal of progress with a C# widget to insert recording_schedule requests from the DOS command line.

You advised that I would to run "pvrx2.exe -OnlyUpdateEPG" after inserting the row - is there a way to do the same sort of thing via the GBPVR plugin API - rather than doing a system call ?
groovyclam
Offline

Junior Member

Posts: 19
Threads: 6
Joined: Jan 2008
#2
2008-02-09, 01:38 PM
It seems like I can do this from the API:

Code:
IScheduleHelper doreload;

doreaload.ForceRecordingScheduleReload();

But what do I assign to my variable "doreload" to get is to reference PVRX2's instance ?

Or am I totally wrong with this approach ?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#3
2008-02-09, 02:08 PM
groovyclam Wrote:It seems like I can do this from the API:

Code:
IScheduleHelper doreload;

doreaload.ForceRecordingScheduleReload();

But what do I assign to my variable "doreload" to get is to reference PVRX2's instance ?

Or am I totally wrong with this approach ?
You can't use this from outside of the gbpvr framework. For example, to do what you are trying to do (from within a plugin), I would use the following...
Code:
ScheduleHelper.getInstance().ForceRecordingScheduleReload();
Outside of the gbpvr framework, getInstance() has no meaning as your exe won't have an instance of ScheduleHelper.

To do what you are trying to do, I would spawn a new Process to invoke pvrx2.exe and pass the cammand line argument to it.

Cheers,
Brian
groovyclam
Offline

Junior Member

Posts: 19
Threads: 6
Joined: Jan 2008
#4
2008-02-09, 02:21 PM
Thanks Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  YouTube EPG Plugin NumberFive 1 1,138 2021-04-03, 03:03 PM
Last Post: mvallevand
  Sling TV plugin? SickBoy 1 3,939 2015-03-05, 12:21 AM
Last Post: sfatula
  Amazon Instant Video plugin ydekmekji 1 1,990 2012-09-07, 12:48 AM
Last Post: ga_mueller
  Movie poster in Videos plugin agerdin 34 12,163 2012-09-03, 05:08 PM
Last Post: agerdin
  Recordings enhancement (plugin??) Jaggy 7 2,989 2012-05-05, 03:35 AM
Last Post: Jaggy
  Facebook plugin? Reddwarf 1 1,766 2011-12-21, 11:11 AM
Last Post: Lao Pan
  A Spotify plugin would be awesome! 7ore 75 32,038 2011-07-22, 08:03 AM
Last Post: McBainUK
  plugin and/or support for the Thanko Raremono am/fm/sw usb radio chesterusob 0 1,809 2011-04-05, 12:11 PM
Last Post: chesterusob
  autoremoverecordings to work independently of recordings "plugin" gEd 2 1,646 2011-02-12, 09:54 PM
Last Post: gEd
  Screensaver plugin Reddwarf 0 1,374 2010-09-14, 09:24 AM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode