NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
fix event_details

 
  • 0 Vote(s) - 0 Average
fix event_details
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#1
2016-04-26, 04:28 PM
Hi,

I trashed my scheduled Recordings table. I was trying to manually change the filename and description in event_details for the Saturday night live special about Prince since the EPG had the wrong data for a repeat episode that was originally scheduled.

I used SQLLite2000Pro to try and update it interactively but the changes wouldn't stick, so I wrote a SQL UPDATE command to update the table, but I was too quick and forgot to add the WHERE OID = nnn clause. So as you may guess, all 3521 entries now point to that same recording with the same event details.

I have a backup of the database from October 2015, so I can write a program to match up OIDs and fix all the entries older than that. The newer entries are almost all in the season/episode format, so I was hoping that with a list of all the files in the recordings directory I can figure out the program logic to update the filenames for the remaining bad entries.

So the last piece of the puzzle is update the event_details field for those. Is there any description of what needs to be in that field or hopefully some way to grab info from THETVDB.COM and build the XML from that? I should be able to parse the program name, season and episode from the filenames of the videos.

Thanks for any help,
Steve Tyrakowski
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#2
2016-04-26, 05:35 PM
Does you C:\Users\Public\NPVR contain recording-backup.xml (possibly .1 and .2, as well) that has everything you need?

If so, just import that on the Recordings tab of the Settings. Backup your current database first. You might need to remove all recrodings before the import so you don't have duplicates.

If not, you might be able to import the individual .ts files. I think there is a way to do it from a command line. If it is possible, you could create a batch file to find all your recordings & import each.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#3
2016-04-26, 10:54 PM
ElihuRozen Wrote:Does you C:\Users\Public\NPVR contain recording-backup.xml (possibly .1 and .2, as well) that has everything you need?

If not, you might be able to import the individual .ts files. I think there is a way to do it from a command line. If it is possible, you could create a batch file to find all your recordings & import each.

I wish I asked a day earlier. I did this on Sunday and the oldest backup xml is just after the problem when i did an epg update.

any idea where to find that command line utility? otherwise I'm looking for info on how to populate the event_details field.

I'm a database programmer, so I'm comfortable using Delphi to manipulate the tables. My biggest issue with Delphi is that it wants to enforce the varchar(50) so I might need to do some fiddling to work-around that.

Thanks,
Steve T.
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#4
2016-04-27, 04:41 AM
SteveTyrakowski Wrote:any idea where to find that command line utility?

Thanks,
Steve T.

Apparently you can use the main executable. I've never tried this myself. See http://www.nextpvr.com/nwiki/pmwiki.php?...ineOptions . This seems to document using it for an xml, but I think you can pass in the .ts file if it was recorded by NPVR.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  event_details in SCHEDULED_RECORDING bgowland 7 2,442 2012-01-25, 03:47 AM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode