[mythtv] [patch] libmyth patch for currupt mythepg recording menu
Simon at the Threshold
dweller at the-threshold.org
Mon Feb 9 13:42:13 EST 2004
Lo there,
My first patch, this one has been irritating me since I started playing
with mythtv at version 0.13. Basicly the description fields downloaded
by tv_grab_uk and tv_grab_uk_rt are so that they break the create
recording menu from the mythepg. (The recording selections are pushed
off the bottom of the screen where they cannot be seen).
The code base is large and scary so I've done a very timid change to
mythtv/libs/libmythtv/programinfo.cpp. It truncates the strings to 512
cahrs which means the buttons are ok no matter how long the description is.
I guess a better patch would be to scroll or allow a more button on the
recording selection screen but at the moment I'm still ramping up. THe
other thing I guess which would ne nice is the conversion of the html &
codes but I suspect that the xml portion of the grabber should have done
this?.
Simon
--
The hardest thing in the world to understand is the income tax.
-- Albert Einstein
--
This email and any attachments hereto are strictly confidential and
intended solely for the addressee. It may contain information which is
covered by legal, professional or other privilege. If you are not the
indended addressee, you must not disclose, forward, copy or take any
action in reliance of this email or attachments. If you have received
this email in error, please notify us as soon as possible.
-------------- next part --------------
Index: programinfo.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/programinfo.cpp,v
retrieving revision 1.107
diff -u -r1.107 programinfo.cpp
--- programinfo.cpp 7 Feb 2004 01:19:54 -0000 1.107
+++ programinfo.cpp 9 Feb 2004 18:38:37 -0000
@@ -411,9 +411,14 @@
proginfo->subtitle = "";
if (proginfo->description == QString::null)
proginfo->description = "";
+ else
if (proginfo->category == QString::null)
proginfo->category = "";
+ // Bounds sanity checking
+ //
+ proginfo->description.truncate(512);
+
proglist->append(proginfo);
}
}
More information about the mythtv-dev
mailing list