NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 82 83 84 85 86 … 93 Next »
Database Connection

 
  • 0 Vote(s) - 0 Average
Database Connection
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#1
2004-12-06, 05:41 PM
Can we as a development community agree to use the DatabaseConnection element from the Config.xml file to get the source for our database connections if we are going to query/manipulate the database directly.

Either that, or can we get a Plugin API that returns a Connection object based off the information in the config.xml. This will help ensure that the plugins still work, if the database that is being used changes.
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#2
2004-12-07, 12:25 AM
[b Wrote:Quote[/b] ]Can we as a development community agree to use the DatabaseConnection element from the Config.xml file to get the source for our database connections if we are going to query/manipulate the database directly.
I don't see why not, sounds like a sensible idea [Image: smile.gif]
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2004-12-07, 01:36 AM
is there a plugin source available with code to connect to the gbpvr db and grab info like recorded show description, title, subtitle? i want to add these into "My Videos" plugin, but want to make sure i do it right the first time, so if your using a different database the program is blind to this (like an autonomous system (little infosys for ya (uni) [Image: smile.gif]).

yeah i never went to the lectures on databases (boring [Image: biggrin.gif])
Guest

Unregistered
 
#4
2004-12-07, 02:40 AM
I have an update of the video archiver plug-in that uses the "correct" db string processing. I've also figured out how to install MSDE, although I had to use a different permission string.

I will try to seperate out the code an email it you later tonight or tomorrow.

One problem I am having is that while my code seems to run ofine on MSDE, GBPVR is not able to schedule new recordings. I don'k know if it is related to MSDE or if it is because my develoment machine doesn't have a tuner card. I haven't tried scheduling recordings with access in the new version of GBPVR. I was going to try to play around with it later to see if I broke something with MSDE or if something else is going on.

Jeff
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2004-12-07, 03:10 AM
i only need to grab info from the database, i dont need to update it in anyway, so there shouldnt be a problem. just want to do a search if video file is in database, if in grab the available info, if any fields replace them (just when displaying them to the end user) with the fields from imdb. this will always be called aswell (to grab poster). just be nicer to display "Carbon Creek" then "err episode description" instead of the file name enterprise_date_time.mpg. or just display the subtitle (if available) in list mode.
Guest

Unregistered
 
#6
2004-12-07, 03:44 AM
I was using the direct DB access for just this same purpose in my plug-in. Sub convinced me that it was best to minimize direct calls to the DB so I have replaced this in recent versions of my plug-in with a cached version of the scheduled recordings list. This takes a while to load the first time but is very quick on lookups thereafter. Direct DB access seems pretty fast each time but you end up begin dependant upon the field names in the DB. If the scheduleHelper exposed a method to search for a recording by file name that would be, I think, the "best" way to solve the problem.

Jeff
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#7
2004-12-07, 04:01 AM
Jeff, the Schedule Recording item should be fixed if you upgrade to version 0.23.11. Sub removed some Access specific code he had in there to flush the JET cache so that it would be immediately available to the recording service.

If you already have version 0.23.8 on your system, you can safely do a install over your current MSDE setup, and it will retain your DatabaseConnection string.

Reven, I think Jorm is working on a Helper utility to his Meta Data for the Zap2It database. This would allow you to get the Sub Title Information, and other expanded meta data information. Not sure what his time line is right now, I know he's been pretty busy lately.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2004-12-07, 04:43 AM
i can wait for the helper util, its not a huge concern for me, just a nice to have feature. and the helper util is a good idea, so if database stuff needs to change/updated i wont have to rebuild the plugin each time.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete recordings from database but not from disk? spinnaker 8 3,832 2013-10-26, 10:51 PM
Last Post: spinnaker
  trying to fake npvr database for unit tests reven 3 2,266 2013-05-20, 08:53 AM
Last Post: reven
  Merged database queries mvallevand 4 2,095 2011-06-26, 09:56 PM
Last Post: mvallevand
  NPVR database questions mvallevand 25 9,877 2011-01-06, 12:58 AM
Last Post: jksmurf
  NPVR database - why so stringy with the fields?? :0) carpeVideo 4 2,041 2010-09-21, 01:48 AM
Last Post: sub
  NPVR Database connection ralphy 4 2,487 2010-09-15, 12:09 AM
Last Post: sub
  How can I reset the Music plugin's database? mkenyon2 1 1,908 2009-10-15, 06:43 PM
Last Post: psycik
  SheduleRecording() locks database cb123 3 2,519 2009-02-14, 06:33 PM
Last Post: sub
  accessing database fluffykeith 3 1,871 2008-07-09, 05:43 PM
Last Post: sub
  SQL database and backticks idkpmiller 6 4,121 2008-05-26, 08:32 AM
Last Post: idkpmiller

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

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

Linear Mode
Threaded Mode