NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 150 151 152 153 154 … 193 Next »
DB Import

 
  • 0 Vote(s) - 0 Average
DB Import
jtokach
Offline

Member

Posts: 192
Threads: 36
Joined: Oct 2004
#1
2005-06-05, 04:55 PM
Sub, I'd like the ability to import data into the DB. Specifically, if I need to do a fresh install, like I did the other week, I'd like some method to import all of the shows, that I recorded previously, back into the DB so they show up in the recordings area and I can watch and delete the shows from my MVP's. (Features which are unavailable through the Video Library) Not to mention, having the attached show information back is really required to make head or tails of all of the .MPG files.

Obviously you'd need an export method to make this work, but this would really make upgrading and fresh reinstalls much more painless.

Perhaps dumping the existing recordings and scheduled recording data to an .XML file?

I managed to do this manually with the following process, which sucks but it at least my stuff is back:

***Stop the GBPVR Service and make backups before doing this.***

1. In the OLD db, create a query, switch to SQL view and paste this code:
Code:
SELECT PROGRAMME.*
FROM PROGRAMME INNER JOIN RECORDING_SCHEDULE ON PROGRAMME.oid = RECORDING_SCHEDULE.programme_oid
WHERE (((RECORDING_SCHEDULE.recording_type)=0) AND ((RECORDING_SCHEDULE.status)=2));

2. Run the query, select all of the rows, CTRL-C to copy
3. Open the PROGRAMME table in the NEW database
4. Paste the records into the table
5. Select only all of the values in the OID column, these are autonumbered so they will have changed from what you pasted earlier.
6. Keep them selected, do not copy them yet.
7. Switch back to the OLD db.
8. In the OLD db, create a query, switch to SQL view and paste this code:
Code:
SELECT * INTO MY_OLD_RECS
FROM RECORDING_SCHEDULE
WHERE (((RECORDING_SCHEDULE.status)=2) AND ((RECORDING_SCHEDULE.recording_type)=0));

9. Run the query
10. Go back to the NEW db, copy (CTRL-C) the values you selected above.
11. Switch back to the OLD db
12. Open the newly created table
13. Select the PROGRAMME_OID column
14. Paste the new values
15. Select all of the rows, CTRL-C to copy
16. Switch to the DB, open the RECORDING_SCHEDULE table
17. If you've done everything correctly, CTRL-V to paste the records, and you're done.

Start the GBPVR service, voila.

I have duplicate recording_group values, but this has no immediate impact. Sub can you comment on that?
-Jim
---------------------------------------------
GBPVR Website
GBPVR Wiki
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2005-06-05, 05:46 PM
There is already a plugin that does something very similiar to this. Take a look at the Video Archiver plugin on the wiki http://www.bladerhq.com/pmwiki/pmwiki.ph...eoArchiver
jtokach
Offline

Member

Posts: 192
Threads: 36
Joined: Oct 2004
#3
2005-06-05, 07:03 PM
I've been avoiding the My Videos and Video Archiver plugins b/c they seem like overkill: too many features, too broad in scope, (introduce another level of complexitity vs. convenience.) I'll give Video Archiver a fair shot though.

At least now that I documented a procedure, we have something to fall back on.

Thanks
-Jim
---------------------------------------------
GBPVR Website
GBPVR Wiki
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#4
2005-06-05, 09:02 PM
another easy thing you can do xrecord has an export all feature. Hit stop on a show and select export all. It generates a .dat file that can move with the mpeg it has all of the show info. It shows up in xrecord with all of the show info. And it is still available in recordings unless you lose your db.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#5
2005-06-05, 11:00 PM
Also renamerecordings will rename the .mpg file to the episode name. It comes in handy if you lose your DB, or want to make DVDs of the shows. You can tell by the episode name, and folder exactly what show it is. Then I use Video Archiver to play back shows that GBPVR doesn't know exist. I don't have it do any other feature.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2005-06-05, 11:24 PM
it really depends what you want, a media centre or a pvr. my videos is designed as a media centre plugin, i use it most for dvd info, and tv shows i have on my server.

but try xrecord if you want to keep recording info and just want a pvr.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Import m3u on device list - file/folder navigator psycik 1 1,015 2022-09-28, 08:25 PM
Last Post: mvallevand
  Import m3u file VCR58 3 3,467 2022-02-18, 03:39 AM
Last Post: sub
  Import XMLTV valid series.episode data from Epgcollector in NZ into NPVR db MCEabused 6 5,663 2014-10-30, 09:41 AM
Last Post: kylebrophy
  Channel Export/Import function Stargrove1 1 1,658 2012-04-18, 10:03 AM
Last Post: psycik
  Import Channels "Show Only New" smajor 14 5,186 2011-09-13, 12:26 AM
Last Post: mvallevand
  Export/Import Recording Schedule zehd 3 1,991 2006-12-16, 12:31 AM
Last Post: zehd
  Manual EPG Edit/Import Recordings? Braklet 8 2,980 2006-10-12, 11:11 PM
Last Post: jksmurf
  Import and export tools for "recordings" frumbert 2 1,559 2006-08-22, 08:51 PM
Last Post: martint123
  EPG Dowload/Import Failure Notification aurora 2 1,761 2005-10-27, 12:54 AM
Last Post: aurora
  TV Guide: import icons capone 2 1,774 2005-03-25, 04:00 PM
Last Post: capone

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

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

Linear Mode
Threaded Mode