diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-30 22:17:49 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-30 22:17:49 (GMT) |
commit | 2877f33d91fd35be784f5a5d8500eedec750c764 (patch) | |
tree | 0fb4ad98d4a8711f62d479ddca311335ad89afdb | |
parent | 27b1467357bf12353ff2ecc9dc3bb08bbf045fa1 (diff) | |
download | linhes_pkgbuild-2877f33d91fd35be784f5a5d8500eedec750c764.zip linhes_pkgbuild-2877f33d91fd35be784f5a5d8500eedec750c764.tar.gz linhes_pkgbuild-2877f33d91fd35be784f5a5d8500eedec750c764.tar.bz2 |
backport of autocard.py
-rwxr-xr-x | abs/mv-core/MythVantage-config/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/mv-core/MythVantage-config/autocard.py | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/abs/mv-core/MythVantage-config/PKGBUILD b/abs/mv-core/MythVantage-config/PKGBUILD index 377083b..28fedfe 100755 --- a/abs/mv-core/MythVantage-config/PKGBUILD +++ b/abs/mv-core/MythVantage-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=MythVantage-config pkgver=3.2 -pkgrel=142 +pkgrel=143 pkgdesc="The Gui-installer" depends=(bc mysql-python expect curl dnsutils sg3_utils parted) arch=('i686') diff --git a/abs/mv-core/MythVantage-config/autocard.py b/abs/mv-core/MythVantage-config/autocard.py index b59b8d6..03eecac 100755 --- a/abs/mv-core/MythVantage-config/autocard.py +++ b/abs/mv-core/MythVantage-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() |