NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 11 12 13 14 15 … 43 Next »
Cleaning up database

 
  • 0 Vote(s) - 0 Average
Cleaning up database
muzicman0
Offline

Member

United States
Posts: 74
Threads: 11
Joined: Jun 2020
#31
2021-06-03, 04:37 PM (This post was last modified: 2021-06-03, 04:40 PM by muzicman0.)
cool.  I'm guessing I can use a cron job with:

Code:
curl -XPUT http://127.0.0.1:8866/service?method=system.remove.missing

If I wanted to do that from a different PC (not the NPVR server), is it possible without allowing unauthenticated access?  IE: can I use https, and include a pin?

EDIT: actually, I already have https access through a reverse proxy, so I guess the only thing is can I do this from a different PC. I will experiment and see.
OS: Ubuntu 20.04 | CPU: i7-4770K | RAM: 8 GB | Tuners: HDHomeRun Quatro (OTA)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#32
2021-06-03, 04:57 PM
First it is a GET not a POST, but no. Curl would require security, which the browser interface caches if you save logins and you can't pass a PIN to curl. I think you can disable all PIN security on a trusted network with <AutoAuthLocalConnections>true</AutoAuthLocalConnections> If you really want this.

NScripthelper does work over the network if you search the forum.

You can enable https for NextPVR directly or via a nginx but it takes some work and it can be a nightmare for Kodi configuring self-signed certs.

I have posted that I don't support linux and that include cron-jobs, scripts etc so I leave it to you to research this without my help.

Martin
muzicman0
Offline

Member

United States
Posts: 74
Threads: 11
Joined: Jun 2020
#33
2021-06-03, 05:38 PM
Thanks. looks like curl won't work regardless, but the command posted was XPUT, not XPOST, which I believe would be a 'get', but I could be wrong. Either way though, I will just use nscripthelper if I need it. So far since I updated, NPVR has been removing deleted files on it's own, so this may end up being a non issue.

I already have a reverse proxy using Caddy (which is super simple to setup), so no need for nginx. Caddy automatically updates my certs as needed with no interaction on my part, so that is awesome, and super simple.
OS: Ubuntu 20.04 | CPU: i7-4770K | RAM: 8 GB | Tuners: HDHomeRun Quatro (OTA)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#34
2021-06-03, 06:08 PM
Sorry I misread I was quickly responding when I was doing something else. I am not sure how Caddy knows how to update certs in Kodi which is where the trouble is but I'm glad you have a solution.

Martin
muzicman0
Offline

Member

United States
Posts: 74
Threads: 11
Joined: Jun 2020
#35
2021-06-03, 06:23 PM
oh, sorry, I mis-read, caddy just updates the certs for the domain, so my domain on https will redirect internally to the local instance of nextPVR. I actually use OpenVPN to connect Kodi to NextPVR since my server is actually hosted off site. My setup is a bit weird. I record offsite, then have scripts that run over night to move the recordings to a OneDrive Folder, which then transfers them to my home machine which is running my Media server, which then imports those recordings. It's a bit weird, but because of how my cable tv is setup, it works this way, and it is all automated.

OpenVPN allows me to stream live TV if I ever want it (although it's VERY rare that I use it). But it also allows me to schedule from my Shields (via Kodi) any recordings I want, etc. It works well, and has been fairly stable. Because of this, I don't have to worry about certs in Kodi.
OS: Ubuntu 20.04 | CPU: i7-4770K | RAM: 8 GB | Tuners: HDHomeRun Quatro (OTA)
Ragal
Offline

Junior Member

London
Posts: 1
Threads: 0
Joined: Sep 2022
#36
2022-09-07, 11:49 AM
Files are deleted automatically on deleting a database. Try Deleting those file manually and see whether you are able to delete or not ??
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Editing recordings and internal database Bobthegoldfish 5 1,119 2022-12-10, 02:15 PM
Last Post: HarryH3
  Import existing shows into NextPVR Database wayloncovil 8 3,607 2020-04-22, 06:51 PM
Last Post: mvallevand
  Database and Config Compatibility jcjefferies 9 3,992 2019-06-30, 09:32 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode