[mythtv-users] metadatalookup -- not searching tvdb after post processing RECORDED

John reidjr at lineone.net
Wed Oct 31 17:51:09 UTC 2012


On 31/10/12 17:23, John wrote:
> On 31/10/12 16:54, Karl Dietz wrote:
>> On 31.10.2012 17:26, John wrote:
>>> On 31/10/12 13:55, Karl Dietz wrote:
>>>> On 31.10.2012 14:03, John wrote:
>>>>> On 31/10/12 11:21, John wrote:
>>>>>>
>>>>>> The recording rule has an inetref, it is set to series 1 episode 
>>>>>> 1. I
>>>>>> have removed the category saying its "Film-comedy", and the subtitle
>>>>>> is now populated. Struggling through the code, as long as the
>>>>>> recording has title subtitle and not categorised as Film or 
>>>>>> movie, it
>>>>>> should be seen as a "show" and tvdb run .
>>>>>
>>>>> category_type = "movie" in recordedprogram , I assume due to the eit.
>>>>> reverting it to "series" allows mythmetadata to do its thing.
>>>>>
>>>>
>>>> If it is a problem we should simply not slap category_type movie on 
>>>> EIT
>>>> events in the first place.
>>>>
>>>> Notice that plain old EIT does not carry a distinction between movie
>>>> and series! The EN 300 468 content_descriptor (PDF available for free
>>>> at ETSI) only describes the topic, not the form of the programme.
>>>>
>>>> Its called "Movie/Drama" which makes sense if interpreted as
>>>> "movie or other dramaturgicaly scripted programme".
>>
>>> Thanks for reply. To be clear the original decision to categorize_type
>>> as Movie, seems consistent, as it was based on the original eit data.
>>> The eit had no subtitle, and the category shows up as Film - Comedy.
>>
>> EIT data does not have subtitles (or episode titles) either. It carries
>> a event name, short description and long description. :-)
>>
>>> What caused me a problem is that I am adding the subtitle later. By 
>>> then
>>> the recording is defined as a movie. I'm fiddling around with mysql, 
>>> but
>>> the more general case this could not be changed by "change recording
>>> metadata" through the gui.
>>
>> can this subtitle adding be codified as EITFixup that sets type to
>> series and adds the subtitle directly?
> Probably, but not by me :-), due to skills rather than intrest. I will 
> have a look at eitfixup maybe I'll learn somthing. Looks like this has 
> been discussed long ago 
> ....http://www.gossamer-threads.com/lists/mythtv/dev/252600, but I 
> assume tailed off.
>
> thanks
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
This looks like the relevant bit of eitfixup, which is already doing its 
best with dutch TV :-)

// Try to make subtitle
QRegExp tmpSub = m_nlSub;
QString tmpSubString;
if (tmpSub.indexIn(fullinfo) != -1)
{
tmpSubString = tmpSub.cap(0);
tmpSubString = tmpSubString.right(tmpSubString.length() - 7);
event.subtitle = tmpSubString.left(tmpSubString.length() -1);
fullinfo = fullinfo.replace(tmpSub.cap(0), "");
}
// This is trying to catch the case where the subtitle is in the main title
// but avoid cases where it isn't a subtitle e.g cd:uk
if (((position = event.title.indexOf(":")) != -1) &&
(event.title[position + 1].toUpper() == event.title[position + 1]) &&
(event.subtitle.isEmpty()))
{
event.subtitle = event.title.mid(position + 1);
event.title = event.title.left(position);
}
Unfortunately I don't have the basic skills to add the logic to this 
code. My current mysql attempt searches for the text between: 'Afl.:' 
{subtitle] '.' and '"'{subtitle}'"' but I am sure there are many other 
variations, which is why current eitfixup doesn't catch them all. ( 
scratch that, it doesn't catch any of them for the shows I record )



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20121031/6b11cd97/attachment-0001.html>


More information about the mythtv-users mailing list