NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 140 141 142 143 144 … 1231 Next »
Channel lineup export

 
  • 0 Vote(s) - 0 Average
Channel lineup export
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2009-04-19, 07:55 PM
Is there a way of exporting (to txt file or similar) a list of all the channels that are assigned to a particular capture source? Perhaps querying the database somehow...?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#2
2009-04-20, 03:23 AM
Here is SQL that will list all channels by capture source:

Code:
SELECT scm.oid, scm.channel_oid, cs.name, scm.source_channel_number, scm.enabled,
                c.display_name, scm.tuning_request
  FROM source_channel_mapping scm, channel c, capture_source cs
WHERE scm.channel_oid = c.oid
   AND cs.oid = scm.capture_source_oid
ORDER BY scm.capture_source_oid, scm.source_channel_number;
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2009-04-20, 07:26 AM
Thanks JavaWiz. What kind of app do I need to be able to open the database file and run that SQL snippet?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#4
2009-04-20, 09:18 AM
McBainUK Wrote:Thanks JavaWiz. What kind of app do I need to be able to open the database file and run that SQL snippet?

I've just tried it with sqltespy and it works, but a graphical interface.

There is a command line program http://www.sqlite.org/ and it works as well. (mini doc at http://www.sqlite.org/sqlite.html )

There is also http://code.google.com/p/sqlite-manager/ that runs as an addon within the Firefox browser!
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#5
2009-04-20, 09:20 AM
Thanks, will take a look at SQLiteSpy.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2009-04-20, 11:49 AM
Thanks guys. The firefox addon had a 'Copy to CSV' option which was exactly what I wanted Smile

Although it's strange that the "lightweight" version had more features then the desktop one...?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#7
2009-04-20, 01:22 PM
batch file version:

Code:
@Echo OFF
set GBPVRDir=c:\Program Files\Devnz\gbpvr
set SQLITE="%GBPVRDir%\SQLite3.exe"
set LOGFILE="%GBPVRDir%\logs\Channels.txt"

set sql=SELECT cs.name, scm.source_channel_number, scm.enabled, c.display_name FROM source_channel_mapping scm, channel c, capture_source cs  WHERE scm.channel_oid = c.oid AND cs.oid = scm.capture_source_oid ORDER BY scm.capture_source_oid, scm.source_channel_number;

%SQLITE% -separator " " "%GBPVRDir%\gbpvr.db3" "%sql%" >> %LOGFILE%
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  USA Cable Discovery Channel problems with Schedules Direct ram4x4nut 0 3,940 2013-02-21, 05:08 AM
Last Post: ram4x4nut
  Channel 4 HD new tuning string Pob 0 2,604 2012-03-29, 08:59 PM
Last Post: Pob
  Composite Channel not being tuned properly seymoria 14 6,766 2012-01-24, 01:56 PM
Last Post: seymoria
  Need help remapping Channel guide and actual channels divinehammer 3 3,750 2012-01-20, 10:43 AM
Last Post: kayleigh
  Composite channel configuration problem. seymoria 6 4,543 2012-01-15, 10:15 PM
Last Post: seymoria
  Live TV Locks Onto Different Channel persim 1 2,297 2011-10-24, 06:33 PM
Last Post: sub
  Recording fails but only on one channel (live viewing still works) dshoup 5 3,482 2011-09-19, 01:15 AM
Last Post: sub
  Channel 4 HD and sat ini DanielP 40 12,314 2011-04-12, 10:42 PM
Last Post: mvallevand
  How to get Sky Digital channel guide into GBPVR? bobster 34 10,951 2011-04-01, 08:10 PM
Last Post: bobster
  Setting for Numeric Channel Change Timeout? smajor 6 2,760 2011-03-16, 07:21 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode