NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 7 8 9 10 11 … 93 Next »
trying to fake npvr database for unit tests

 
  • 0 Vote(s) - 0 Average
trying to fake npvr database for unit tests
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2013-05-19, 09:25 AM
Hi,

I'm trying to fake the npvr.db3 for unit tests. I've inserted fake epg data, a fake digital recorder, channels, channel mapping, capture source.

when i try to schedule a recording (thats what im unit testing) it fails. when I open nextpvr gui and try to do a recording nextpvr says "No tuner is available to record the requested...."

What am I missing? The machine I'm trying to run these unit tests on is a blank build VM which has nextpvr installed, but no capture sources or anything (just a hyper-v image).

TIA
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#2
2013-05-19, 04:00 PM
I can't help with you question but it sure sounds like you are missing a link in your oid somewhere. If you want you could add a dummy device using the NetworkRecorder tuner plugin which you can even connect to your prod. system for testing if you'd like.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2013-05-19, 05:57 PM
For the scheduling to work, you might need to check CAPTURE_SOURCE has both 'present' and 'enabled' set to 'Y'. If it's not that, then I'd be checking your CHANNEL_MAPPING entries to make sure the channels are mapped to your capture sources.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2013-05-20, 08:53 AM
stupid me, i opened the db in sqlitebrowser and saw the present and enabled as 'Y' but I just assumed they were booleans and just rendered this way so I set them to 1.

All is working now Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,320 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,063 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,173 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,349 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,555 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,433 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,208 2014-09-08, 02:22 AM
Last Post: sub
  Delete recordings from database but not from disk? spinnaker 8 3,745 2013-10-26, 10:51 PM
Last Post: spinnaker
  high res (256x256+) npvr icon? reven 15 5,767 2013-09-01, 05:13 AM
Last Post: psycik
  Multiple genres in npvr.db3 bgowland 5 2,812 2013-04-16, 09:53 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode