[mythtv] [patch] Don't delete icons in mythfilldatabase unless
replacement exists
Andrew M. Bishop
amb at gedanken.demon.co.uk
Mon Feb 9 13:52:56 EST 2004
This patch stops the icon being deleted when mythfilldatabase runs if
there is no replacement icon for the channel. For example when
tv_grab_uk changed away from Ananova there is no longer an icon
specified in the xmltv output.
-------------------- filldata.cpp.diff --------------------
diff -u /home/amb/mythtv/v0.14/mythtv-0.14/programs/mythfilldatabase/filldata.orig.cpp /home/amb/mythtv/v0.14/mythtv-0.14/programs/mythfilldatabase/filldata.cpp
--- /home/amb/mythtv/v0.14/mythtv-0.14/programs/mythfilldatabase/filldata.orig.cpp 2004-01-28 05:04:39.000000000 +0000
+++ /home/amb/mythtv/v0.14/mythtv-0.14/programs/mythfilldatabase/filldata.cpp 2004-02-09 18:39:00.000000000 +0000
@@ -893,7 +893,7 @@
}
else
{
- if (!non_us_updating)
+ if (!non_us_updating && localfile != "")
{
querystr.sprintf("UPDATE channel SET icon = \"%s\" WHERE "
"chanid = \"%s\"",
-------------------- filldata.cpp.diff --------------------
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop amb at gedanken.demon.co.uk
http://www.gedanken.demon.co.uk/
More information about the mythtv-dev
mailing list