[mythtv] Mythfilldatabase patch
Bjorn Hijmans
bjorn at hijmans.nl
Tue Jan 28 21:44:12 EST 2003
Hi,
Even if --update is specified Mythfilldatabases overwrites the icon field
in the channels table everytime it updates the database. Attached patch
fixes this problem.
Bjorn
-------------- next part --------------
584,587c584,588
< {
< querystr.sprintf("UPDATE channel SET icon = \"%s\" WHERE "
< "chanid = \"%s\"",
< localfile.ascii(), chanid.ascii());
---
> {
> if (!non_us_updating)
> { querystr.sprintf("UPDATE channel SET icon = \"%s\" WHERE "
> "chanid = \"%s\"",
> localfile.ascii(), chanid.ascii());
589,594c590,596
< if (!query.exec(querystr))
< {
< cerr << "DB Error: Channel icon change failed, SQL query "
< << "was:" << endl;
< cerr << querystr << endl;
< }
---
> if (!query.exec(querystr))
> {
> cerr << "DB Error: Channel icon change failed, SQL query "
> << "was:" << endl;
> cerr << querystr << endl;
> }
> }
More information about the mythtv-dev
mailing list