[mythtv] [mythtv-commits] Ticket #1688: Finnish DVB EIT languages and subtitle/description field

Daniel Kristjansson danielk at cuymedia.net
Fri Apr 21 20:35:26 UTC 2006


On Fri, 2006-04-21 at 18:55 +0300, Otto Kolsi wrote:
> >> #1688: Finnish DVB EIT languages and subtitle/description field

> How about the second issue? Currently the 'description' field in DB is 
> empty and all the descriptions are in 'subtitle' field.

It sounds like you need to use a fixup routine.

If you don't have a fixup routine the short event descriptor event
name and text are used for the title and the subtitle, resp. And the
extended event descriptor is used for the description.

If you have any fixup routine defined the subtitle will be moved to the
description field if the description field is empty. If you need any
more processing, you need to write a fixup routine. Have a look at the
code in eitfixup.{h,cpp}. In particular the EITFixUp::Fix(). You
might just need to add a generic fixup if you always have a subtitle
but no description.

If you want to define a fixup, look at init_fixup in eithelper.cpp.
In AddEIT(const DVB..) we add the mask for any fixup defined over
the entire network_id, or for a particular transport_id and network_id,
or for a particular network_id and service_id. So you can define a
fixup for a whole network, or for any service on a network when it is
on a particular transport, or for a single service when on a particular
network on any transport. We could add other combinations if needed.

You can see these values for your channels with this DB query:

SELECT networkid, transportid, serviceid, channum, channel.sourceid
FROM channel, dtv_multiplex 
WHERE channel.mplexid=dtv_multiplex.mplexid
ORDER BY channel.sourceid, networkid, transportid, serviceid, channum;

-- Daniel




More information about the mythtv-dev mailing list