NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 8 9 10 11 12 … 93 Next »
Refreshing TV Guide Data (after System plugin EPG update)

 
  • 0 Vote(s) - 0 Average
Refreshing TV Guide Data (after System plugin EPG update)
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2012-02-18, 09:32 AM
Sub, it's been mentioned in a couple of places that the System plugin needed to call:
Code:
EventBus.GetInstance().Notify("RELOAD_RECORDINGS");

to force a refresh of the guide data after it runs a manual EPG update. Unfortunately, that doesn't seem to work as expected, and the guide stays empty of data. However, if you exit NPVR, or even just start Live TV, then it populates.

What does work though, is calling RELOAD_SETTINGS (with or without the above call).

I was just wondering if this was expected behaviour? Should I hold out on a fix that would let RELOAD_RECORDINGS work, or is there no harm in letting it do the full settings reload?

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2012-02-18, 04:22 PM
The TV Guide will reload the EPG and pending recording list when it sees the 'RELOAD_SETTINGS' event (since the user has been in the Settings screen, and may have changed the channel lists, or updated the EPG etc).

It'll just reload the pending recording list when its sees 'RELOAD_RECORDINGS' (indicating the user has altered the recording list).
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2012-02-18, 04:23 PM
Ah, right you are. Thanks for the clarification.

Iain
Esko
Offline

Junior Member

Posts: 2
Threads: 0
Joined: Mar 2012
#4
2012-03-06, 12:07 PM
Hello, it seems that this thread anwers my question before I have posted it.

What am I doing:
I change the content of scheduled_recording table from outside of nextpvr. I use pysqlite, and I do not know about plugins. (perhaps I need to start learning?). Everything looks fine, only the system does not seem to read the table unless I touch it with nextpvr program by adding a(nother) post.

Why do I want to add a row from outside:
I want to send an ordinary sms to my pc telling that please record a certain channel at a certain moment for a certain length of time. Can anyone tell me is it possible (or sensible or even allowed) to invoke this EventBus.GetInstance().Notify("RELOAD_RECORDINGS"); from my python 2.7 program? (I do actually get the sms request all the way to the scheduled_recording table)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2012-03-06, 03:45 PM
Esko Wrote:Can anyone tell me is it possible (or sensible or even allowed) to invoke this EventBus.GetInstance().Notify("RELOAD_RECORDINGS"); from my python 2.7 program? (I do actually get the sms request all the way to the scheduled_recording table)
Sorry, no it's not currently. At this stage it's only callable from a plugin running inside the app.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2012-03-07, 03:31 AM
presuming it's the sort of thing you wouldn't be doing every minute or two, you could force a recording schedule reload by executing "NextPVR.exe -updateepgonly". Perhaps a little ugly, given that it goes through an entire EPG update first, but it should work.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2012-03-07, 05:10 AM
Along those lines, for the next version of nextpvr.exe, you'll be able to run "nextpvr.exe -reload" to trigger the recording service to reload.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#8
2012-03-07, 05:12 AM
You'd probably better running the scheduled.exe utility to schedule a recording though, rather than directly inserting into the database, since it'll do things correctly for tuner allocations etc.
Esko
Offline

Junior Member

Posts: 2
Threads: 0
Joined: Mar 2012
#9
2012-03-07, 10:22 AM
Thank you Sub and johnsonx42!

I am sure with these advice I'll be able to go ahead with my little project. Promise to do my homework.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#10
2013-03-24, 06:40 PM
Sorry to dig up an old thread, but this seems to be not working again in the System plugin (I don't think it's 2.6.2...I think it's been broken for a wee while).

After an EPG update, the top-bar in the EPG shows recordings marked, but the actual programmes have no highlight. An exit/reload of NPVR makes them appear again.

Here's a shorthand of what I have it doing:

Code:
new EPGManager().UpdateEPG(this);

    ExportImport.ExportRecordings(false);

//  EventBus.GetInstance().Notify("RELOAD_RECORDINGS");
    EventBus.GetInstance().Notify("RELOAD_SETTINGS");

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,716 2022-10-17, 12:44 AM
Last Post: sgilani
  EPG update API mvallevand 2 1,385 2020-12-02, 01:17 AM
Last Post: mvallevand
  New Systems Plugin kirschey 10 3,291 2020-11-14, 08:01 PM
Last Post: sub
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,346 2018-10-23, 07:24 AM
Last Post: almightyj
  Getting more than 24 hours of Guide Data scJohn 4 3,555 2018-05-16, 04:20 AM
Last Post: sub
  Update Season and Episode from EPG_EVENT puck64 0 2,772 2015-08-31, 07:37 AM
Last Post: puck64
  Can't debug with app using Nutility (System.TypeInitializationException) danorum 3 2,889 2015-08-17, 10:53 PM
Last Post: danorum
  VIdeo playback from plugin mvallevand 5 3,419 2015-08-06, 10:43 PM
Last Post: sub
  Skin - view further into the future, scale the guide Vitenka 5 3,225 2014-11-26, 07:28 PM
Last Post: Vitenka
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,856 2014-11-14, 02:05 AM
Last Post: Benoire

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

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

Linear Mode
Threaded Mode