NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Extras v
« Previous 1 2 3 4 Next »
Pluto TV - Incremental EPG updates

 
  • 0 Vote(s) - 0 Average
Pluto TV - Incremental EPG updates
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#1
2021-03-30, 05:31 PM
Instructions for this have been added to the wiki

https://github.com/sub3/NextPVR/wiki/Extra-PlutoTV

Martin
2leftfeet
Offline

Senior Member

Somewhere in NE Pa.
Posts: 546
Threads: 57
Joined: Jan 2015
#2
2021-03-31, 02:40 PM (This post was last modified: 2021-03-31, 02:41 PM by 2leftfeet.)
(2021-03-30, 05:31 PM)mvallevand Wrote:   Additionally there a is on optional parameter 

python plutotv.py xmltv_update ###

where ### is the minutes to wait for the update.

To simplify things what I do is in the PostLoadEPG.bat (.sh) file I add

python plutotv.py xmltv_update 360  <---- wouldn't this be 6 hours?

and every 3 hours it updates automatically.  This option does not survive a manual PC reboot but it does works with sleep.

Martin

In any respect, I was not able to get this working this morning.  I will re-try later this afternoon when I have more time, and more coffee in my system.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#3
2021-03-31, 03:00 PM
Right I meant 180 minutes. I screwed up the instructions, to it is a dash not underscore too. Importantly I also missed the part that you need to span this a new task typically

start /b "" python C:\Users\Public\NPVR-data\scripts\plutotv\pluto.py xmltv-update 180
or
nohup python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update 180 &

It is a bit of a nuisance for me documenting this for Windows since I work with a linux installation

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#4
2021-04-01, 01:35 PM
I forgot to mention that there is an additional feature in this script where updates are not scheduled if the current time after the update is after 10pm or before 7:00 am. In that time the range is deferred until 8 am, but nightly updates will still happen. Feel free to edit the times to suit your needs. The 10pm cutt-off allows EPG data until around 2am.

Martin
2leftfeet
Offline

Senior Member

Somewhere in NE Pa.
Posts: 546
Threads: 57
Joined: Jan 2015
#5
2021-04-01, 01:44 PM
Martin,

My server is set go to sleep when there is no activity (watching live, recording) after a period of time, then wakes upon a request from a scheduled event or request from a client. How are updates handled once the server wakes?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#6
2021-04-01, 02:19 PM
I assume your question is related to the timed wait option. The started thread doesn't care about NextPVR and the wait is based on clock time, not a counter. If the PC sleeps past the scheduled time then it will do an update starting in pre-padding time after the wake. There is an assumption, right or wrong, that the NPVR-data drive and the network are available after wake. If the script fails to schedule an EPG update for any reason, there won't be any further timed updates until there is a manual update or the daily update is perforrmed.

A timed update can of course happen anytime even during a recording.

The xmltv-update parameter can also be used alone so you can schedule tasks to do this however you want.

Martin
2leftfeet
Offline

Senior Member

Somewhere in NE Pa.
Posts: 546
Threads: 57
Joined: Jan 2015
#7
2021-04-01, 02:29 PM
All good! gives a lot of flexibility! thanks
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#8
2021-04-03, 04:35 PM
Martin:

I have been unable to get this to work. Here's what I have done so far:

- upgraded to NextPVR Version: 5.1.1.210329
- downloaded and expanded plutotv.zip into the scripts directory. 
- created PostLoadEPG.sh with one line: "nohup python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update 180 &"
- moved the sh file into the scripts directory and chmod a+x and confirmed permissions.

Watching the manual EPG update, I can see where it reports that it is reading the PostLoadEPG.sh file.

But the update does not run 3 hours later.

I do not find any nohup output files which I believe would indicate a reported error.

Where do I go next to troubleshoot this? 

Logs attached.

Bob


Attached Files
.zip   logs-20210403-1109.zip (Size: 1.89 MB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#9
2021-04-03, 04:59 PM
If you run from the command line

sudo nohup python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update

do you get an immediate update or any error messages?

Martin
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#10
2021-04-03, 06:52 PM
Thank you! That showed me where the problem was.

Since I had already set up plutotv in a /scripts/plutotv directory, I must have expanded the zip files into /scripts/plutotv/plutotv directory. There was already a pluto.py file in the path but it was the wrong pluto.py file! Correcting the path did the trick.

And now nohup.out reports the update was successful.

Maybe I should rename the new pluto.py file so there won't be two of them.

Thank you very much, Martin!

Bob
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reminder Pluto TV Extra removed mvallevand 0 341 2025-01-04, 06:32 PM
Last Post: mvallevand
  Getting Pluto extra to work ballfam 163 14,260 2024-08-08, 07:23 PM
Last Post: mvallevand
  Pluto TV. mvallevand 93 32,540 2024-05-16, 08:46 PM
Last Post: mvallevand
  Pluto/iptv epg expected actions Prsa01 3 1,164 2024-01-20, 03:37 PM
Last Post: mvallevand
  pluto tv recordings just space travel thing and not completing nogoer 38 5,804 2022-06-27, 02:34 PM
Last Post: mvallevand
  streamlink not executing on Ubuntu for Pluto spagio 5 1,864 2022-04-15, 08:16 PM
Last Post: mvallevand
  Pluto TV Recordings - SxxExx not in filename wayne.page 3 1,468 2022-01-01, 03:26 PM
Last Post: mvallevand
  Pluto TV VOD Series not working loveridgem 13 3,496 2021-12-11, 08:34 PM
Last Post: mvallevand
  A couple of questions on Pluto TV mvallevand 6 2,749 2021-12-02, 02:57 AM
Last Post: 2leftfeet
  Pluto TV Multiple Instances loveridgem 9 2,482 2021-10-30, 11:08 PM
Last Post: loveridgem

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

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

Linear Mode
Threaded Mode