Ticket #3660: mythtv.py-dbname.diff
File mythtv.py-dbname.diff, 753 bytes (added by , 17 years ago) |
---|
-
MythTV.
old new 84 84 elif token == "DBPassword": 85 85 if config.get_token() == "=": 86 86 db_password = config.get_token() 87 elif token == "DBName": 88 if config.get_token() == "=": 89 db_name = config.get_token() 87 90 88 91 token = config.get_token() 89 92 log.debug('Using config %s' % config_file) … … 92 95 93 96 if not found_config: 94 97 raise "Unable to find MythTV configuration file" 95 self.db = MySQLdb.connect(user=db_user, host=db_host, passwd=db_password, db= "mythconverg")98 self.db = MySQLdb.connect(user=db_user, host=db_host, passwd=db_password, db=db_name) 96 99 97 100 def getSetting(self, value, hostname=None): 98 101 """