[mythtv] Trailing spaces in callsigns

Jerry Rubinow jerrymr at gmail.com
Thu Sep 15 16:15:43 UTC 2011


On Thu, Sep 15, 2011 at 12:06 PM, Stuart Morgan <stuart at tase.co.uk> wrote:

> On Thursday 15 Sep 2011 07:44:51 Jerry Rubinow wrote:
> > Would a patch be accepted which trimmed off trailing whitespace in the
> > channel callsigns before doing the comparison for merging channels in the
> > program guide?
>
> Would it not be easier in the long term to trim the whitespace at the time
> the
> callsign is inserted into the database instead of all the places that it's
> read back from the database?
>
> A one-off DB update could address the existing instances of
> trailing/leading
> whitespace.
>
>
It's always possible for a user to manually insert incorrectly terminated
strings into the DB though, as frowned upon as it is to manually edit the
channel table.  What about doing a normalization on the callsign entries in
the channel table every time mythbackend starts?

-Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-dev/attachments/20110915/b5ddfadd/attachment.html 


More information about the mythtv-dev mailing list