NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
« Previous 1 … 13 14 15 16 17 … 43 Next »
Import recordings from TvHeadEnd?

 
  • 0 Vote(s) - 0 Average
Import recordings from TvHeadEnd?
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#11
2021-12-15, 11:27 PM
That's the full list, yeah
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#12
2021-12-16, 12:19 AM
OK, thanks I can always modify it for other lists.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#13
2021-12-16, 12:54 AM (This post was last modified: 2021-12-16, 01:15 AM by mvallevand.)
The file says there total of 508 recording but I only see 1/10th of that. Can you see if either of these create bigger files

curl http://user:password@tvh:9981/api/dvr/entry/grid_finished?limit=0 -o filename
curl http://user:password@tvh:9981/api/dvr/entry/grid_finished?limit=1 -o filename
curl http://user:password@tvh:9981/api/dvr/entry/grid_finished?limit=10000 -o filename

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#14
2021-12-16, 01:35 AM
Last one worked.

Seemed to stick it all on a single line, though
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#15
2021-12-16, 01:54 AM
That's JSON that's ok on one line. They are all there and I do seem some S/E infomation on Taskmaster. I will also clean up some that start with "New: " and some that have the subtitle in the title (I took it out of the description already)

You run in Docker right? I saw you posting in the linux sub group.

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#16
2021-12-16, 02:22 AM
That's right, I run it in docker

I thought you'd have some automated script to convert them over? I hope it's not a load of manual work?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#17
2021-12-16, 02:28 AM
This reuses a lot of code so it is trivial really.  I do a little extra just for fun to make it look better.  There is a website json2csharp that does the hard part.

Martin
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#18
2021-12-16, 02:54 AM
I've been doing some tidying up myself, I've put some of it off as TVHeadend wasn't helping me

I had a few reasons I moved away from TVHeadEnd...
  1. The newest version would not work for me
  2. Couldn't get any answers of the forums
  3. Duplicate episode detection would not work, so I've just been through and manually deleted tonnes of repeats
  4. Recordings, particularly CBeebies would not stop and I'd manually have to go in and stop them...After recording for say 72 hours...Maximum time did not work

Now I'm making some progress, I've started encoding some of my keeps over to h264. I usually do this and then move them over to Jellyfin.

A nice little bonus is NextPVR appears to name them in the scheme that I would usually need to go searching
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#19
2021-12-16, 03:30 PM (This post was last modified: 2021-12-16, 05:58 PM by mvallevand.)
Here to you go install instruction here https://forums.nextpvr.com/showthread.ph...#pid564371

Syntax for this on docker from bash.  Better to unzip the files before going into bash since unzip would need to be installed

cd /app
dotnet NextTool.dll --tvheadend filename

filename can be created anywhere but the recording names from TVHeadend need to be as seen by the NextPVR file system.

To recap the syntax to get the TVHeadend recording JSON file is

curl http://user:password@tvh:9981/api/dvr/entry/grid_finished?limit=10000 -o filename

There should be a log of what is happening in NextTool.log in the NextPVR log folder (and in the zip) and you can remove it if all is good.

Martin


Attached Files
.zip   NextTool-1.0.1.zip (Size: 145.34 KB / Downloads: 9)
aTF6i
Offline

Member

UK
Posts: 136
Threads: 11
Joined: Dec 2021
#20
2021-12-16, 11:47 PM
Worked a treat. Many thanks for your hard effort; it's very much appreciated

For anyone else using this tool to import tvheadend; do as follows

  • curl http://user:password@tvh:9981/api/dvr/entry/grid_finished?limit=10000 -o filename  (Grab the JSON of recordings from TVHeadEnd
  • Extract   NextTool-1.0.1.zip
  • Move extractions + filename JSON to a place the docker can grab the files
  • sudo docker exec -u 0 -it nextpvr /bin/bash (Bash into docker nextpvr)
  • Copy all 5 files to /app
  • apt install sqlite3
  • cp /app/runtimes/linux-x64/native/libe_sqlite3.so /app/
  • cd /app/
  • dotnet NextTool.dll --tvheadend filename

Done
« 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
  Exporting Recordings The1nOnlyHMatt 2 231 2025-06-06, 08:53 PM
Last Post: Allan
  Recurring recording creates multiple recordings of same event txinga 2 428 2025-03-29, 12:33 AM
Last Post: txinga
  Successful import from MythTV DB to NextPVR Allan 0 325 2025-02-10, 09:51 PM
Last Post: Allan
  Recurring Recordings Not Working After Merging Channels BrettB 2 313 2025-02-06, 04:00 AM
Last Post: mvallevand
  Moving recordings to a fileserver SickBoy 1 322 2025-02-01, 02:39 PM
Last Post: mvallevand
  recordings prematurely 'stop' moonmeat 3 577 2025-01-24, 02:08 PM
Last Post: mvallevand
  What would happen if I change file locations and names of the recordings? Luisy44 4 679 2024-10-15, 01:15 AM
Last Post: Luisy44
  Import guide data from HD Homerun tuner jonasx 5 919 2024-10-14, 08:48 PM
Last Post: mvallevand
  Why are my recordings not recording completely? Luisy44 6 1,010 2024-10-12, 07:01 PM
Last Post: Luisy44
  Recordings import issue Jaggy 4 654 2024-08-25, 12:03 AM
Last Post: Jaggy

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

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

Linear Mode
Threaded Mode