NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 299 300 301 302 303 … 433 Next »
New DB/cleaned DB for rebuilt system

New DB/cleaned DB for rebuilt system
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2012-07-25, 11:37 PM
Is there a way of exporting tuning parameters/channel IDs, tuners etc, for say creating a new DB? Like the recordings-backup.xml

Or a way of taking an existing DB, removing the EPG/Recordings/playback details so that you don't have to rescan, assign an dredo all your channels?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2012-07-25, 11:43 PM
Sorry, there is nothing built in for doing this. You could probably just fire up a SQLite tool and empty the PLAYBACK_POSITION, SCHEDULED_RECORDING, RECURRING_RECORDING, and EPG_EVENT tables though.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2012-07-25, 11:44 PM
I assumes as much. Was good to get a list of tables though...

Thanks.
Asher
Offline

Junior Member

Posts: 23
Threads: 4
Joined: Jun 2009
#4
2012-07-26, 11:04 PM (This post was last modified: 2012-07-27, 04:58 AM by Asher.)
On the subject of cleaning the db/rebuilding a system:
I've had to replace my HDD's (recording storage only, not the npvr application, so SCHEDULED_RECORDING and EPG_EVENTS, tuners, channels.. are all ok)
and now my migrated recordings are all showing the wrong air date - they've had a timezone adjustment that they didn't need!

Here's what I did:
1. "Export Recordings", to create recording-backup.xml
2. Find/replace to change the path of each recording to reference the new location
Eg: replace "E:\Media\New Recordings\" with "G:\Recorded TV\"

ORIGINAL:
<recording>
<oid>7406</oid>
<name>Fringe</name>
<channel>TV2</channel>
<filename>E:\Media\New Recordings\Fringe\Fringe_20120719_22352335.ts</filename>
<status>READY</status>
<startTime>2012-07-19T10:35:00.0000000Z</startTime>
<endTime>2012-07-19T11:35:00.0000000Z</endTime>
<Event>
<OID>1746520</OID>
<Title>Fringe</Title>
<SubTitle></SubTitle>
<Description>While Peter and Olivia investigate murders involving an inexplicable toxin, Astrid and her Other Side counterpart meet for the first time.</Description>
<ChannelOID>6898</ChannelOID>
<StartTime>2012-07-19T10:35:00.0000000Z</StartTime>
<EndTime>2012-07-19T11:35:00.0000000Z</EndTime>
</Event>
</recording>


NEW:
<recording>
<oid>7406</oid>
<name>Fringe</name>
<channel>TV2</channel>
<filename>G:\Recorded TV\Fringe\Fringe_20120719_22352335.ts</filename>
<status>READY</status>
<startTime>2012-07-19T10:35:00.0000000Z</startTime>
<endTime>2012-07-19T11:35:00.0000000Z</endTime>
<Event>
<OID>1746520</OID>
<Title>Fringe</Title>
<SubTitle></SubTitle>
<Description>While Peter and Olivia investigate murders involving an inexplicable toxin, Astrid and her Other Side counterpart meet for the first time.</Description>
<ChannelOID>6898</ChannelOID>
<StartTime>2012-07-19T10:35:00.0000000Z</StartTime>
<EndTime>2012-07-19T11:35:00.0000000Z</EndTime>
</Event>
</recording>



3. Import recordings. (oops, now i have duplicates in my 'Recordings' view, but that's OK, I can very easily delete them from SCHEDULED_RECORDING)

HOWEVER:
Something weird happened - the air date for the migrated recordings has been changed, even though recording\Event\StartTime\ was not modifed.

ORIGINAL DB ENTRY: 2012-07-19 10:35:00
IMPORTED ENTRY: 2012-07-19 22:35:00

The import process added 12 or 13 hours (I still have a few recordings from summer time), converting from GMT to LOCAL when it wrote the record to the DB.
The front end assumes the backend stores in Zulu (GMT) time so the recording above is displayed as 10:35AM on the 20th of July

I'll attached a screenshot of the db if you want/need it. :-)
| Win 10 Pro (x64) | NextPVR | Hardware housed in a Silverstone GD02-MT: http://www.facebook.com/album.php?aid=97...cf324c98b5 |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  system requirements MaxOne72 1 1,666 2019-09-19, 06:49 AM
Last Post: mvallevand
  Rebuilt on New Hardware // Decoder Question rowle1jt 8 2,501 2019-03-14, 12:06 PM
Last Post: rowle1jt
  How do I rebuild a database after a system rebuild pc44062 4 2,169 2018-12-15, 02:49 PM
Last Post: pc44062
  Recommendations on configuring my system RKCRLR 2 1,388 2018-01-05, 07:48 PM
Last Post: mvallevand
  Assembly load error for System.Data.SQLite on startup evans036 4 1,835 2017-04-24, 12:05 AM
Last Post: sub
  Why can't I manually set recording "priority" or code a better tuner manager system? ChaosMageX 9 3,425 2017-01-30, 07:40 AM
Last Post: johnsonx42
  System.zip download link point to previous v2.12.12.19 version Handy.Man 4 1,890 2016-10-09, 10:24 PM
Last Post: Handy.Man
  System Plugin Throwing Exception with v3.6.6 Lao Pan 3 1,709 2015-12-07, 07:11 AM
Last Post: imilne
  NPVR Status Icon (System Tray) is unresponsive martinu 11 4,824 2015-11-19, 05:13 PM
Last Post: ACTCMS
  EPG update suddenly crashing system acemib 4 1,792 2015-11-15, 03:10 AM
Last Post: johnsonx42

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

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

Linear Mode
Threaded Mode