MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Watch / Listen Media » MyTV - Engine 0.2 » Tips and Tricks


Tips and Tricks Post your Tips and Tricks in here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2006-08-11, 00:45   #1 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default Editing Media Portal Database

Just thought you would like to know that you can edit the media portal database. Why you ask? What about when you compress your dvr-ms to avi with a third party tool and want to attach it back into media portal, or if you move a file around, and it comes into media portal with no date and time as to the recording. You can update that, as well as the names of the recordings.

The program is called SQLLite-Analyzer, and it is shareware.

http://www.topshareware.com/SQLite-A...load-36030.htm

I cannot quite remember where I downloaded it from, because I have version 3.0.4 build 21.

Anyway what you do is install the program, go to the file menu and click on 'new database registration'. Then you navigate to your media portal database folder (backup the database first!!!!) select the file 'TVDatabaseV21.db3' (you have to select files *.* to see that file because the extension is not db) then it will appear on the left. Select the database and expand it out so you can see the table names. Select the 'recorded' table. On the right you can update any of the entries in that database table, one per recording that MP has done. You can update the times (funny format there, but it is not hard to work out), the names, or the file names and paths.

Remember to tab out of a field after you have edited it, because it updates the database when you leave the field you are editing.

Hope that works for you all. Backup you database just in case you get in trouble, but it is all pretty easy to work out, and helps a lot with tidying things up.
petermcc is offline   Reply With Quote
Old 2006-08-11, 00:47   #2 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Actually what I reckon though is that someone can write a simple plugin that can do this stuff, update times on recordings, update file names, update recording names.

Much cleaner that would be. Is something like that around now, I have not seen it?
petermcc is offline   Reply With Quote
Old 2006-08-11, 01:53   #3 (permalink)
Retired Team Member
 
Callifo's Avatar
 
Join Date: Dec 2004
Location: Adelaide, Australia
Age: 22
Posts: 1,444
Thanks: 0
Thanked 10 Times in 1 Post

Country:

My System

Send a message via MSN to Callifo
Default

Can also use SQLiteBrowser.
Callifo is offline   Reply With Quote
Old 2006-08-15, 17:15   #4 (permalink)
~ok|
Guest
 
Posts: n/a


Default

editing the database directly is really dangerous IMO, nevertheless I once was obliged to do it and the original SQLlite command-line client http://www.sqlite.org/download.html saved me.

Maybe you could try to embed your call to your third party tool along with this client (and some SQL) within some kind of Windows batch file or WSH script. Quick and dirty but may be effective to help automatizing your process.
  Reply With Quote
Old 2006-08-26, 07:59   #5 (permalink)
Portal Member
 
Noelix's Avatar
 
Join Date: Feb 2006
Location: Phoenix, AZ
Age: 26
Posts: 388
Thanks: 10
Thanked 1 Time in 1 Post

Country:

My System

Send a message via MSN to Noelix
Default

Wow I just tried that SQL Analyzer program and I am still clueless! I tried 'executing' a change wherein I changed the filepath of a recorded tv program from a .mpg extension to a .avi extension and it didn't take (i.e. it didnt do it). SQL Analyzer is useful for looking at how things are arranged in the databases but that command line SQLite program is really how we want to do it, in other words so we can set up an automated process.
__________________
Noelix is offline   Reply With Quote
Reply

Bookmarks

Tags
database, editing, media, portal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(original thread) US/Canadian/Mexico EPG Zap2it Plugin Released bradsjm zap2it (discontinued) 513 2007-02-21 14:07
Media Portal lastest relase - nice fix warwon MediaPortal 1 Talk 0 2006-12-28 20:39
0.2.1 and latest svn MyPictures thumbnails broken gloomyandy Codecs, External Players 1 2006-10-24 10:01
The Top Reasons why Media Portal is the Greatest HTPC App Steve Warner MediaPortal 1 Talk 37 2006-08-02 02:00
Master Media Database implementation/design. Comments please MariachiElf Improvement Suggestions 18 2006-05-28 19:09


All times are GMT +1. The time now is 17:17.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress