2018-08-05, 01:04 AM
This seems like the simplest problem, but I'm stumped. After a recording finishes, I want NextPVR to "touch" a URL on my Plex Media Server that will kick off a library update. Plex has a number of URL's that will automatically start a task. In my case, I want NextPVR to visit this web page after a recording completes:
(Except the IP, library number, and token are added properly)
Now that Windows 10 natively has curl available from the command, this should be a piece of cake. I have both a PostProcessing.bat and a PostCancel.bat located in C:\Users\Public\NPVR\Scripts that contain just one line (with the IP and Token info removed of course):
If I double-click that batch file, Plex updates immediately. And NRecord.log shows that the batch files are seen, and are being run after a recording. But then nothing happens. The Plex library doesn't update. So the command in the file seems to be correct, but it fails when triggered by NextPVR. Here's the line in the log:
Any guesses what I'm doing wrong? I'm kind of sorry to ask, but I feel like I'm making a really obvious mistake that I'm just not noticing.
Code:
http://[PMS_IP_ADDRESS]:32400/library/sections/29/refresh?X-Plex-Token=YourTokenGoesHere
(Except the IP, library number, and token are added properly)
Now that Windows 10 natively has curl available from the command, this should be a piece of cake. I have both a PostProcessing.bat and a PostCancel.bat located in C:\Users\Public\NPVR\Scripts that contain just one line (with the IP and Token info removed of course):
Code:
curl http://IP:32400/library/sections/3/refresh?X-Plex-Token=Token
If I double-click that batch file, Plex updates immediately. And NRecord.log shows that the batch files are seen, and are being run after a recording. But then nothing happens. The Plex library doesn't update. So the command in the file seems to be correct, but it fails when triggered by NextPVR. Here's the line in the log:
Code:
2018-08-04 18:00:01.870 [DEBUG][9] Starting: C:\Users\Public\NPVR\Scripts\PostProcessing.bat "F:\Recordings\TV\Friends\Friends.S03E02.The.One.Where.No.Ones.Ready.ts" 1434 864 29 "Friends"
Any guesses what I'm doing wrong? I'm kind of sorry to ask, but I feel like I'm making a really obvious mistake that I'm just not noticing.