Opened 13 years ago

Closed 13 years ago

#3660 closed defect (fixed)

MythTV.py does not allow customized database name

Reported by: anonymous Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythvideo Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

From http://svn.mythtv.org/trac/browser/trunk/mythplugins/mythvideo/mythvideo/scripts/MythTV.py (so in trunk):

self.db = MySQLdb.connect(user=db_user, host=db_host, passwd=db_password, db="mythconverg")

Username, hostname and password are read from mysql.txt, but the database name is not. My database isn't called mythconverg, so this doesn't work.

Patch attached.

Attachments (1)

mythtv.py-dbname.diff (753 bytes) - added by sid3windr@… 13 years ago.
Small patch fixing the issue

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by sid3windr@…

Attachment: mythtv.py-dbname.diff added

Small patch fixing the issue

comment:1 Changed 13 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

(In [13756]) Closes #3660

  • Read DB name from mysql.txt.

Thanks to sid2windr for this patch.

Note: See TracTickets for help on using tickets.