Ticket #3660: mythtv.py-dbname.diff

File mythtv.py-dbname.diff, 753 bytes (added by sid3windr@…, 17 years ago)

Small patch fixing the issue

  • MythTV.

    old new  
    8484                                elif token == "DBPassword":
    8585                                        if config.get_token() == "=":
    8686                                                db_password = config.get_token()
     87                                elif token == "DBName":
     88                                        if config.get_token() == "=":
     89                                                db_name = config.get_token()
    8790       
    8891                                token = config.get_token()
    8992                        log.debug('Using config %s' % config_file)
     
    9295       
    9396                if not found_config:
    9497                        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)
    9699       
    97100        def getSetting(self, value, hostname=None):
    98101                """