NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 24 25 26 27 28 … 43 Next »
Way to trigger creation of recordings

 
  • 0 Vote(s) - 0 Average
Way to trigger creation of recordings
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#1
2021-02-11, 03:01 PM
I am updating the EPG_EVENT table with extra information from IMDB. I know after the daily EPG update I can use the PostEPGupdate.sh, because then NextPvr creates new recordings based on all the recurring schedules and rules, but is there another way to trigger this? Mainly for dev/testing purposes. When I use my program in production I will just use the PostEPGupdate.sh.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#2
2021-02-11, 03:08 PM
NScripthelper.exe -updaterecurring on Windows, and there are a few suggestions on how to do it via other platforms posted.

Martin
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#3
2021-02-11, 03:13 PM (This post was last modified: 2021-02-11, 03:14 PM by Graham.)
(2021-02-11, 03:01 PM)janoonk Wrote: I am updating the EPG_EVENT table with extra information from IMDB. I know after the daily EPG update I can use the PostEPGupdate.sh, because then NextPvr creates new recordings based on all the recurring schedules and rules, but is there another way to trigger this? Mainly for dev/testing purposes. When I use my program in production I will just use the PostEPGupdate.sh.

(2021-02-11, 03:08 PM)mvallevand Wrote: NScripthelper.exe -updaterecurring on Windows, and there are a few suggestions on how to do it via other platforms posted.

This might be the first occasion in all of recorded history that Martin has mis-remembered something ... nscripthelper.exe ... is now ... dotnet nscripthelper.dll ... https://github.com/sub3/NextPVR/wiki/nscripthelper
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#4
2021-02-11, 03:17 PM
Oops sorry, thanks, I knew there was a reason that it didn't work on other platforms, it needs a hack I've posted for dotnet to run.

Martin
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#5
2021-02-11, 03:36 PM (This post was last modified: 2021-02-11, 04:06 PM by janoonk.)
Ok thanks works like a charm.

Since my NextPVR is running in Docker on my NAS I first had to install NextPVR for Windows version locally to get access to the NScriptHelper.dll file.

My tool enhances the NextPVR database with IMDB info for all movies.
I have a NextPVR recording rule running that checks for high rating with enough votes.

I ran the command below in a command prompt on my local Windows PC where I extra installed NextPVR (what's that error btw??):

dotnet NScriptHelper.dll -updaterecurring -server:192.168.11.57:8866
Cannot use file stream for [C:\Program Files\NextPVR\NScriptHelper.deps.json]: No such file or directory
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
</rsp>

Maybe it's a good idea to have this NScriptHelper.dll  tool as a separate download available without installing a whole new NextPVR instance?
Update: Hmm I noticed the NextPVR service is needed and must be running to be able to run the .dll
Would be nice if you could trigger it using a simple API call.


Attached Files Thumbnail(s)
               
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,094
Threads: 957
Joined: May 2006
#6
2021-02-11, 03:51 PM
When I posted that a hack was required to run NSCriptHelper on other platforms I figured you search the forum rather doing a full install.

Martin
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#7
2021-02-12, 09:34 AM (This post was last modified: 2021-02-12, 09:55 AM by janoonk.)
(2021-02-11, 03:51 PM)mvallevand Wrote: When I posted that a hack was required to run NSCriptHelper on other platforms I figured you search the forum rather doing a full install.

Martin

Well I actually did forum search using several keywords, but could not find it. Then I decided to just do a quick Windows install.

But in the end I made a little hack myself in 5 minutes without requiring you to install a second instance of NextPVR.
My setup is a NAS running NextPVR inside Docker and I work on my laptop in the same network.

Put this file triggerUpdateRecurring.sh in a subfolder triggerUpdateRecurring inside \docker\nextpvr\config\
Go inside your container using:
Code:
sudo docker exec -it [ID] /bin/bash

Run the script in the background:
Code:
triggerUpdateRecurring.sh &

Code:
#run this script in the background:
# triggerUpdateRecurring.sh &

while :
do
while [ ! -f /config/triggerUpdateRecurring/trigger ]
do
#echo "Waiting to be triggered... (make a file called: trigger)"
sleep 3
done
#echo "Got triggered! Calling NextPVR to update recurring schedules."
/usr/bin/dotnet /app/NScriptHelper.dll -updaterecurring > /dev/null 2>&1
mv /config/triggerUpdateRecurring/trigger /config/triggerUpdateRecurring/triggered
done

To be able to run the NScriptHelper.dll with dotnet I had to do:
Code:
cd /app
cp NextPVRServer.runtimeconfig.json NScriptHelper.runtimeconfig.json


Each time you make a (can be empty) file trigger inside that directory it will tell NextPVR to update recurring.
On my client laptop I have a network path to that folder and this way I can easily trigger it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Exporting Recordings The1nOnlyHMatt 2 225 2025-06-06, 08:53 PM
Last Post: Allan
  Recurring recording creates multiple recordings of same event txinga 2 426 2025-03-29, 12:33 AM
Last Post: txinga
  Recurring Recordings Not Working After Merging Channels BrettB 2 310 2025-02-06, 04:00 AM
Last Post: mvallevand
  Moving recordings to a fileserver SickBoy 1 316 2025-02-01, 02:39 PM
Last Post: mvallevand
  recordings prematurely 'stop' moonmeat 3 572 2025-01-24, 02:08 PM
Last Post: mvallevand
  What would happen if I change file locations and names of the recordings? Luisy44 4 675 2024-10-15, 01:15 AM
Last Post: Luisy44
  Why are my recordings not recording completely? Luisy44 6 1,001 2024-10-12, 07:01 PM
Last Post: Luisy44
  Recordings import issue Jaggy 4 648 2024-08-25, 12:03 AM
Last Post: Jaggy
  Recurring recordings not getting scheduled ginge6000 1 447 2024-07-12, 10:58 AM
Last Post: mvallevand
  Audio Format of Recordings (AAC LC SBR) jayg30 5 1,927 2023-12-08, 04:10 AM
Last Post: jayg30

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

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

Linear Mode
Threaded Mode