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
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#11
2021-04-03, 08:26 PM
Great. And yes you really should only have one copy, there will be other updates. I wouldn't rename just unzip overtop, I can't guarantee there weren't other changes.

Martin
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#12
2021-04-03, 09:37 PM
OK. Then the new plutotv files are supposed to replace the old install ones? I didn't understand that. Thank you.

Bob
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#13
2021-04-03, 09:38 PM
(2021-04-03, 09:37 PM)Bstephens Wrote: OK. Then the new plutotv files are supposed to replace the old install ones? I didn't understand that. Thank you.

Yes it is a version bump, but the other thread is locked and I was too lazy to ask sub to open it for me.

Martin
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#14
2021-04-06, 08:49 PM
Well . . . This is not working for me yet.

I have tracked this for a while and here's what I have observed.

The 8am update does not take place. The pluto-xmltv.xml is time stamped 02:45. There is no update.lock file in the plutotv directory.

When I executed PostLoadEPG.sh in a terminal window, update.lock was created and three hours later pluto-xmltv.xml was updated. So all that works as advertised.

BUT somehow, PostLoadEPG.sh is not being run after the update because there is no update.lock file.

Updating the EPG information from NextPVR settings reports that it is running PostLoadEPG.sh but there is no evidence, that is, there is no update.lock file created.

Where do I go next to troubleshoot this?

Bob



I then ran
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#15
2021-04-06, 09:13 PM
You go to the button to post a new topic and add zipped logs.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#16
2021-04-07, 01:03 AM
I've updated post #1 with an update, to handle an error condition on overlapping runs of xmltv-update.

Martin
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#17
2021-05-06, 12:16 AM
Martin:

You mention in the instructions that the Pluto updates do not survive a reboot. You are correct. But after rebooting the server because of some updates, I have not figured out the key to getting the plutotv extra working again. The xmltv updates at the 3am point, but fails to repeat every three hours. My simple reading of the log indicates that PostLoadEPG.sh is being run and I can't find any error messages, though I am certainly not expert enough to know all of the places to look. 

I can run nohup python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update and I get an EPG update, but obviously something is wrong.

How are we supposed to restart this extra after a reboot?

Bob


Attached Files
.zip   logs-20210505-1837.zip (Size: 1.87 MB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#18
2021-05-06, 12:31 AM
I only gave the examples as a guide to help users create their own scripts to update the EPG. If you want to reboot things change. It is not intended to be robust.

I do see this which would indicate the the process should not have loaded a second instance of the addon because it assumes python is running.

2021-05-05 03:17:52.784 [DEBUG][114] About to run /var/opt/nextpvr/scripts/PostLoadEPG.sh
2021-05-05 03:17:52.784 [DEBUG][114] Starting: bash -c "'/var/opt/nextpvr/scripts/PostLoadEPG.sh' "
2021-05-05 03:17:52.862 [DEBUG][121] > Locked

My suggestion is to download the version now maintained on the wiki just in case it is different from yours. You can create this script to get back on track after you reboot, if you'd like

Code:
sudo rm /var/opt/nextpvr/scripts/plutotv/update.lock
sudo python3  /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update


Martin
Bstephens
Offline

Junior Member

usa
Posts: 40
Threads: 6
Joined: Feb 2021
#19
2021-05-08, 09:13 PM
Martin:

When I ran the xmltv-update, I got this in the terminal window after "Running PostLoadEPG.sh"
Traceback (most recent call last):
File "/var/opt/nextpvr/scripts/plutotv/pluto.py", line 321, in <module>
if os.path.isfile(updateLockFile) == True:
NameError: name 'updateLocfFile' is not defined

I'm not sure yet whether PostLoadEPG.sh was successful. Time will tell.

Bob
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#20
2021-05-08, 09:27 PM
You might have copied the screen wrong , but it does look like the version on the wiki isn't quite the same as I run here, but you should be able to ignore that error.

However if you are getting that error I fell that your PostLoadEPG.sh file might be wrong since it would be missing the second parameter to defer the update and it could cause loops

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reminder Pluto TV Extra removed mvallevand 0 525 2025-01-04, 06:32 PM
Last Post: mvallevand
  Getting Pluto extra to work ballfam 163 18,776 2024-08-08, 07:23 PM
Last Post: mvallevand
  Pluto TV. mvallevand 93 34,828 2024-05-16, 08:46 PM
Last Post: mvallevand
  Pluto/iptv epg expected actions Prsa01 3 1,422 2024-01-20, 03:37 PM
Last Post: mvallevand
  pluto tv recordings just space travel thing and not completing nogoer 38 6,705 2022-06-27, 02:34 PM
Last Post: mvallevand
  streamlink not executing on Ubuntu for Pluto spagio 5 2,087 2022-04-15, 08:16 PM
Last Post: mvallevand
  Pluto TV Recordings - SxxExx not in filename wayne.page 3 1,630 2022-01-01, 03:26 PM
Last Post: mvallevand
  Pluto TV VOD Series not working loveridgem 13 3,947 2021-12-11, 08:34 PM
Last Post: mvallevand
  A couple of questions on Pluto TV mvallevand 6 2,974 2021-12-02, 02:57 AM
Last Post: 2leftfeet
  Pluto TV Multiple Instances loveridgem 9 2,821 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