NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 30 31 32 33 34 … 73 Next »
Reload recorded tv into database

 
  • 0 Vote(s) - 0 Average
Reload recorded tv into database
mld1101
Offline

Junior Member

US
Posts: 9
Threads: 3
Joined: Feb 2020
#1
2021-06-15, 09:20 PM
I was reorganizing my recorded tv storage onto a larger disk. I did so by just copying the files from the old recordedtv disk to the new one. I made the mistake of pointing nextpvr at the new disk before all the files were copied, and so the automatic cleanup thought the files were gone (which they were temporarily) and removed them from the database, as expected.

I've been trying to get them loaded back into the database without success. Using the export/import process only gets the few files that are in the database, which I'm guessing were the only ones copied when the database cleanup ran.

I found some other threads on here with bat files and powershell scripts but they did not work either.

Is there a way to make nextpvr read all of the files in the recordedtv folder and add them to the database? They are all .ts files that were recorded by nextpvr.

Thanks for any help anyone can offer. Logs attached.

Matt


Attached Files
.zip   logs-20210615-1711.zip (Size: 645.61 KB / Downloads: 0)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#2
2021-06-15, 09:44 PM
If you've still got a C:\Users\Public\NPVR-data\recording-backup.xml file with your files in it, take a copy of the file, then edit the file to correct the paths to the recordings, then use the Import Recordings feature to import the xml file.
mld1101
Offline

Junior Member

US
Posts: 9
Threads: 3
Joined: Feb 2020
#3
2021-06-15, 11:45 PM
The export only has about 8 files out of 376 files. That's what's causing me the issue. I see these few files in the recorded tv list in kodi, but I don't see the other 300+ files. The path to the recordings didn't change, it's just a new hard drive.

The scripts I found promised to scan the recorded tv files and create the XML file that I could import, but they didn't seem to recognize the .ts files and just said they were skipping them and it skipped them all.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,318
Threads: 867
Joined: May 2006
#4
2021-06-15, 11:55 PM
Do you have the old npvr.db3 file?

Martin
BrettB
Online

Posting Freak

Saint Paul, MN, USA
Posts: 2,521
Threads: 166
Joined: Jun 2007
#5
2021-06-16, 12:35 AM
(2021-06-15, 09:44 PM)sub Wrote: If you've still got a C:\Users\Public\NPVR-data\recording-backup.xml file with your files in it, take a copy of the file, then edit the file to correct the paths to the recordings, then use the Import Recordings feature to import the xml file.

(2021-06-15, 11:45 PM)mld1101 Wrote: The export only has about 8 files out of 376 files. That's what's causing me the issue. I see these few files in the recorded tv list in kodi, but I don't see the other 300+ files. The path to the recordings didn't change, it's just a new hard drive.

How many days ago did you do this? The file that sub is referring to isn't a "new" manual export. It is one which gets created automatically by the system each time the EPG update runs.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,399
Threads: 742
Joined: Nov 2003
#6
2021-06-16, 04:03 AM
It creates a couple of backups too, so you should hopefully have recording-backup.xml, recording-backup.xml.1 and recording-backup.xml.2...which hopefully covers the last three days (unless you've been manually updating the epg, causing files to be overwritten).
mld1101
Offline

Junior Member

US
Posts: 9
Threads: 3
Joined: Feb 2020
#7
2021-06-16, 12:27 PM
Thanks for clarifying that. I do have the .1 and .2 files but it looks like they were overwritten. I don't have an older copy of the database file. I have now set up backups of nextpvr, but too late for this. I've learned a lesson for the next time I have to replace a disk! Thank you for your help.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,318
Threads: 867
Joined: May 2006
#8
2021-06-16, 01:15 PM
My NextIimport utility will scan your recording folder and import any old files. The metadata would be limited to the filename information.

Martin
mld1101
Offline

Junior Member

US
Posts: 9
Threads: 3
Joined: Feb 2020
#9
2021-07-15, 03:00 PM
Just now getting back to this. I tried NextIimport but it failed with an Object not found error. I've pretty much given up on reloading my old files and I'll chalk it up as Lesson Learned.

Thanks so much for your help. Now I know what not to do if I move the files again!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,318
Threads: 867
Joined: May 2006
#10
2021-07-15, 04:01 PM
You probably didn't install NextImport according to the directions or used the wrong command, but if you don't need the recordings that is fine too.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help cleaning up database Jakesty 8 211 2022-12-17, 06:30 AM
Last Post: Jakesty
  After upgrading to nextPVR v6.0, timeout problem when streaming recorded TV newton 17 700 2022-10-19, 05:50 PM
Last Post: sub
  Recorded TV playback skips and records for extended periods joestk 7 388 2022-07-07, 04:25 PM
Last Post: joestk
  AUDIO OUT OF SYNC. LIVE AND RECORDED riclgarcia 7 721 2021-10-18, 06:39 PM
Last Post: riclgarcia
  Recorded Programs Self-delete at End Monogram 2 610 2021-01-29, 01:53 PM
Last Post: Graham
  Skip/spacing in tv recorded titles amabletrujillo 11 1,046 2020-12-19, 12:50 AM
Last Post: sub
  Multiple directories for recorded TV in V5? FrogFan 10 1,332 2020-12-02, 03:04 AM
Last Post: FrogFan
  Only DVB-S channels are displayed/recorded, why? Lehmden 6 1,079 2020-11-27, 08:42 AM
Last Post: Lehmden
  Database "Enabled" Field in Recurring_recording Table Gazavant 2 524 2020-07-13, 06:04 PM
Last Post: Gazavant
  Files recorded dodgydart 5 950 2020-06-07, 12:30 PM
Last Post: dodgydart

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

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

Linear Mode
Threaded Mode