NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 51 52 53 54 55 … 159 Next »
sqlite database modifications

 
  • 0 Vote(s) - 0 Average
sqlite database modifications
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#1
2007-12-22, 05:40 AM
Hey sub - just checking up to see if the following is possible - ive got an autoit script that moves my recordings from the recordings folder to the my videos library but i want to keep my descriptions etc so what do i need to change in the database ie table / data wise etc ?

i want to see if its possible by using autoit first and if not i might need to delve a little deeper into what you and others are using for those edits.

cheers
Skip
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2007-12-22, 06:01 AM
The recording's filename is stored in the RECORDING_SCHEDULE table, in the 'filename' column. Be careful dicking around with the database though - its easy to break things. Make sure you back up your database first... Big Grin
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#3
2007-12-22, 06:39 AM
thanks for the advise - will make sure i have at least 2 or 3 backups Big Grin just in case Wink
LouCypher
Offline

Junior Member

Posts: 14
Threads: 5
Joined: Dec 2007
#4
2007-12-22, 08:48 AM
I recently used SQLite Database Browser to edit my gbpvr.db3 file. It worked great.
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#5
2007-12-22, 10:25 AM
ok - ive got my little util to do the following

* moves the files from the source folder (recording dir) to the destination folder (anywhere you specify)
* if the file being moved has a .mpg extn it updates the database to the new location
* when the source folder is empty its then deleted.

thats all fine but i think ive just created something i didnt mean to create - haha stupid me - so if anyone wants a util to move recorded programs around the place at the click of a button just let me know...

but what i wanted to achieve was to be able to keep the show descriptions and info that was showing up against a tv program to be available in the video library - sub is this possible or am i dreaming ?

cheers
Skip
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2007-12-22, 03:00 PM
skippy_nz Wrote:but what i wanted to achieve was to be able to keep the show descriptions and info that was showing up against a tv program to be available in the video library - sub is this possible or am i dreaming ?
There is no popup screens in the Video Library that show this type of info, so no matter what you fiddle around with in the database you're not going to get this. You'd have to access the recording through the Recording screen to see this type of info.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#7
2007-12-22, 07:21 PM
yea, that won't show up in vid library, but they'll still show up in 'recordings' if you update the 'file' part of the db...i wrote a batch file to do same thing using sqlite3.exe and batch file..Smile copies comskip .txt and extras too..
http://forums.nextpvr.com/showthread.php?t=26775
now even deletes original dir if no shows left in it...

in mine,i copy show plus extras, adjust db, then delete original...[safest way]
[it takes a good while to copy several gigs] so you don't need to edit the <autodeletemissingrecordings> settings...this way works fine without it..Big Grin


works like a charm..Big Grin looks like nothing's happened in Recordings screen, but the drive sure has lots more space!
sometimes i put my HD stuff on another drive from postprocessing.bat cuz it takes up so much space...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#8
2007-12-23, 04:51 AM
sub Wrote:There is no popup screens in the Video Library that show this type of info, so no matter what you fiddle around with in the database you're not going to get this. You'd have to access the recording through the Recording screen to see this type of info.

oh right - bugger - is there any chance that this can be added for archiving purposes ?
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#9
2007-12-23, 04:57 AM
pBS Wrote:yea, that won't show up in vid library, but they'll still show up in 'recordings' if you update the 'file' part of the db...i wrote a batch file to do same thing using sqlite3.exe and batch file..Smile copies comskip .txt and extras too..
http://forums.nextpvr.com/showthread.php?t=26775
now even deletes original dir if no shows left in it...

in mine,i copy show plus extras, adjust db, then delete original...[safest way]
[it takes a good while to copy several gigs] so you don't need to edit the <autodeletemissingrecordings> settings...this way works fine without it..Big Grin


works like a charm..Big Grin looks like nothing's happened in Recordings screen, but the drive sure has lots more space!
sometimes i put my HD stuff on another drive from postprocessing.bat cuz it takes up so much space...

i should have searched to see if anyone else had done something similar - but i guess it helped my sql skills learning the commands to read in a column and then modifying the data....

my script moves the all the data from one folder to another folder - if its on a different drive autoit automatically copies the data then deletes the original when done- and yeah it deletes the original folder once the files have been moved.

cheers
Skip
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#10
2007-12-23, 05:05 AM
skippy_nz Wrote:oh right - bugger - is there any chance that this can be added for archiving purposes ?
Sorry, probably not. That was what the Recordings screen is intended to be for - viewing the details about a recording/show prior to playing it. Is there a specific reason you dont want it in the recording screen? It shows the details that it sounds like you want to see.
« 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
  SQLite manager plugin for firefox martint123 1 2,091 2008-03-13, 04:14 AM
Last Post: JavaWiz
  SQLite Expert Personal and AVG Free ACTCMS 1 1,899 2007-12-01, 09:11 PM
Last Post: martint123
  SQLite with VB .Net taz 3 2,598 2007-11-07, 08:45 PM
Last Post: saintjo
  2 PVR's one database for recordings? xmorph 3 1,734 2007-01-14, 10:30 PM
Last Post: dvasco
  Can you Browse the SQLite DataBase? Pioneer4x4 15 7,291 2006-09-15, 09:14 PM
Last Post: Pioneer4x4
  SQLite DB editor bgowland 3 2,300 2006-05-20, 09:29 PM
Last Post: ubu
  MovieTrack - a handy little movie database groover km 5 2,904 2005-08-24, 08:13 AM
Last Post: stefan
  music video/single database ? reven 1 1,877 2005-06-04, 03:32 PM
Last Post: ydekmekji

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

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

Linear Mode
Threaded Mode