summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-01-30 21:36:13 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-01-30 21:36:13 (GMT)
commit27b1467357bf12353ff2ecc9dc3bb08bbf045fa1 (patch)
tree91241d5558d18ee17563681da9a221b7f660b099 /abs/core-testing/LinHES-config
parent0103118725d69bf3a444daae8385484a7cab78be (diff)
downloadlinhes_pkgbuild-27b1467357bf12353ff2ecc9dc3bb08bbf045fa1.zip
linhes_pkgbuild-27b1467357bf12353ff2ecc9dc3bb08bbf045fa1.tar.gz
linhes_pkgbuild-27b1467357bf12353ff2ecc9dc3bb08bbf045fa1.tar.bz2
add the -d option to autocard.py.
This inserts a dummy tuner thats useful for testing. Currently it's tied to the crappy 1939 chevy commerical from the sample-media pkg. Still looking for a better clip to use.
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rwxr-xr-xabs/core-testing/LinHES-config/PKGBUILD2
-rwxr-xr-xabs/core-testing/LinHES-config/autocard.py9
2 files changed, 8 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index d62720e..b440f22 100755
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=LinHES-config
pkgver=1.0
-pkgrel=228
+pkgrel=232
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev )
pkgdesc="Install and configure your system"
depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan )
diff --git a/abs/core-testing/LinHES-config/autocard.py b/abs/core-testing/LinHES-config/autocard.py
index b59b8d6..03eecac 100755
--- a/abs/core-testing/LinHES-config/autocard.py
+++ b/abs/core-testing/LinHES-config/autocard.py
@@ -11,6 +11,9 @@ import string
import glob
from string import letters
from string import digits
+def INSERTNULL_SOURCE(name,xmltvgrabber,userid,freqtable,lineupid,password,useeit):
+ cursor = db.cursor()
+ cursor.execute("INSERT INTO videosource(name,xmltvgrabber,userid,freqtable,lineupid,password,useeit) VALUES(%s,%s,%s,%s,%s,%s,%s);",(name,xmltvgrabber,userid,freqtable,lineupid,password,useeit))
def INSERTCARD_INTOMYTH(Device,Driver,Cardvendor):
global currenthostname
@@ -241,7 +244,7 @@ def main(argv):
try:
- opts, args = getopt.getopt(argv, "hgwirc", ["help", "gathercards", "writeudev" ,"insert" , "reloadudev" , "clearautocard"] )
+ opts, args = getopt.getopt(argv, "hgwircd", ["help", "gathercards", "writeudev" ,"insert" , "reloadudev" , "clearautocard"] )
except getopt.GetoptError:
sys.exit(2)
for opt, arg in opts:
@@ -261,7 +264,9 @@ def main(argv):
RELOADUDEV()
elif opt in ( "-c" , "--clearautocard"):
CLEARAUTOCARD()
-
+ elif opt in ( "-d" ):
+ INSERTCARD_INTOMYTH("file:/myth/video/TripThe1939.mpeg","ivtv","Dummy tuner")
+ INSERTNULL_SOURCE("dummy","/bin/true","","default","NULL","NULL","0")
if ( writeudev == "true"):
WRITEUDEV_IVTV()