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
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