NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 67 68 69 70 71 … 93 Next »
C#: Get a list of all channels?

 
  • 0 Vote(s) - 0 Average
C#: Get a list of all channels?
osiris
Offline

Junior Member

Posts: 10
Threads: 4
Joined: Oct 2005
#1
2005-10-06, 10:20 AM
Is there a way of getting all channels from GBPVR.Backend.Common? The only way I've found is to get listings and get the channels from there. But if you want to add a manual recording functionality, you also need to get channels that don't have listings...
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2005-10-06, 10:28 AM
you could just query the database directly.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,661
Threads: 767
Joined: Nov 2003
#3
2005-10-06, 03:43 PM
Check the web admin code. It does it.
osiris
Offline

Junior Member

Posts: 10
Threads: 4
Joined: Oct 2005
#4
2005-10-06, 09:11 PM
reven Wrote:you could just query the database directly.

Bad idea, if the database format changes in a future version my code will stop working. The chances of the .NET api sticking is much higher.

Quote:Check the web admin code. It does it.

Ok, will do. Do you know where?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2005-10-06, 09:24 PM
Quote:Bad idea, if the database format changes in a future version my code will stop working. The chances of the .NET api sticking is much higher.
the database might add new attributes but i really doubt sub would remove any so if you just use
string oid = reader["channel_oid"];
that would work fine, just dont specify the column number.
osiris
Offline

Junior Member

Posts: 10
Threads: 4
Joined: Oct 2005
#6
2005-10-07, 06:37 AM
reven Wrote:the database might add new attributes but i really doubt sub would remove any so if you just use
string oid = reader["channel_oid"];

The web admin gets the channels by getting program listings, so it doesn't retreive channels that have no listings. So I might have to use the db directly...

Next question: Can you schedule a manual recording using the c# api? Everything the ScheduleHelper does is obfuscated, so as a programmer you're really stuck with the API provided and have little opportunity to extend it...

Is there a wishlist for new functions in the API somewhere?

And - thanks for your help :-)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 6,820 2022-04-11, 04:30 PM
Last Post: mandai
  Channels List by Channel Group Name scJohn 1 2,749 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,042 2017-06-19, 09:14 AM
Last Post: psycik
  Switching Audio Channels spitefulgod 0 1,986 2016-12-15, 08:42 PM
Last Post: spitefulgod
  Merged channels mvallevand 3 2,606 2014-04-11, 04:55 AM
Last Post: mvallevand
  Scan for channels programmatically or via command prompt? reven 12 5,171 2013-03-08, 05:01 AM
Last Post: reven
  List of "IEventNotification" events? reven 8 3,340 2012-11-01, 10:56 PM
Last Post: reven
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,859 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,727 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 2,162 2011-09-28, 09:48 PM
Last Post: cncb

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

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

Linear Mode
Threaded Mode