NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 17 18 19 20 21 … 93 Next »
Capture source names

 
  • 0 Vote(s) - 0 Average
Capture source names
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#1
2010-08-02, 10:24 AM
I display the names of capture sources in the System plugin eg ("Pinnacle PCTV 3010iX BDA DVBT Tuner (DVB-T)"). Someone has asked if they could override the names, as they can be quite verbose.

The easiest way I can see to do that is just to change the stored name in the database (CAPTURE_SOURCE.name). Is there any danger in doing that? Hopefully all the links are from its OID rather than its name?

Iain
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#2
2010-08-02, 12:32 PM
I have this same issue with Web Radio and I thought it might be solvable when NPVR added support for language.xxx.xml

Martin
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#3
2010-11-11, 06:48 PM
Can I bump this? I've just implemented renaming tuners but I'd prefer what I've done to be OKed by sub. It doesn't appear to have affected anything in the limited testing I've done, but it would be nice to be sure. I'm basically just executing:

Code:
UPDATE CAPTURE_SOURCE SET name = ? WHERE oid = ?;
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#4
2010-11-11, 07:18 PM
Couldn't you just store the overridden name in the plugin configuration file? Store the oid and the overridden name. Then on display, if the oid exists in the configuration file, show that name. Otherwise, get the name out of the database.

I don't know how the System plugin is setup, but I just thought this would be a better way than editing the database.
Author of Weather (NPVR) & Weather2 (GBPVR)
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#5
2010-11-18, 01:49 PM
Yeah, that would be my fallback plan, but being able to edit the database (if it was safe) is a quicker/easier job, and anything quicker is preferable with my current time-limited life Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Open Source Mheg+ Graham 0 1,490 2012-11-30, 06:32 PM
Last Post: Graham
  sample video overlay plugin source code? reven 2 2,449 2011-10-03, 12:42 AM
Last Post: reven
  Source code for older versions ? Spark 1 1,792 2011-02-23, 01:19 AM
Last Post: sub
  Plugins appearing with small case names imilne 3 1,784 2010-07-11, 09:44 PM
Last Post: imilne
  How to display custom plugin names and descriptions. whurlston 29 7,817 2010-01-03, 08:48 PM
Last Post: whurlston
  GBPVRLibrary - Open Source Components reven 76 25,404 2009-12-29, 09:26 PM
Last Post: whurlston
  Source for plugin similiar to Video Library ishmale423 2 1,936 2009-05-01, 04:49 PM
Last Post: jasonbs10
  Select capture source khaver 3 1,968 2008-12-15, 02:20 AM
Last Post: khaver
  vlc as live TV Source theGressier 4 2,895 2008-09-13, 12:35 AM
Last Post: drlava
  What SCM (Source Control Management) system do you use? JavaWiz 3 2,143 2008-08-19, 07:28 PM
Last Post: Manderson

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

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

Linear Mode
Threaded Mode