Ticket #9594: myth-eit-unified-patch-Kuraffen.diff

File myth-eit-unified-patch-Kuraffen.diff, 1.9 KB (added by hakon@…, 9 years ago)

Patch in unified diff format (previous was in old-style completely useless format)

  • mythtv/libs/libmythtv/eitfixup.cpp

    old new  
    114114      m_nlOmroep ("\\s\\(([A-Z]+/?)+\\)$"),
    115115      m_noRerun(" \\(R\\)"),
    116116      m_noColonSubtitle("^([^:]+): (.+)"),
    117       m_noNRKCategories("^(Supersommer|Superjul|Barne-tv|Fantorangen|Supermorgen|Julemorgen|Sommermorgen|"
     117      m_noNRKCategories("^(Superstreker|Supersommer|Superjul|Barne-tv|Fantorangen|Kuraffen|Supermorgen|Julemorgen|Sommermorgen|"
    118118                        "Kuraffen-TV|Sport i dag|NRKs sportsl.rdag|NRKs sportss.ndag|Dagens dokumentar|"
    119119                        "NRK2s historiekveld|Detektimen|Nattkino|Filmklassiker|Film|Kortfilm|P.skemorgen|"
    120120                        "Radioteatret|Opera|P2-Akademiet|Nyhetsmorgen i P2 og Alltid Nyheter:): (.+)"),
    121       m_noPremiere("\\s+-\\s+(Sesongpremiere|Premiere)!?$"),
     121      m_noPremiere("\\s+-\\s+(Sesongpremiere|Premiere|premiere)!?$"),
    122122      m_Stereo("\\b\\(?[sS]tereo\\)?\\b")
    123123
    124124{
     
    16941694{
    16951695    int        position;
    16961696    QRegExp    tmpExp1;
    1697     tmpExp1 =  m_noNRKCategories;
    16981697    // Check for "title (R)" in the title
    16991698    position = event.title.indexOf(m_noRerun);
    17001699    if (position != -1)
     
    17021701      event.previouslyshown = true;
    17031702      event.title = event.title.replace(m_noRerun, "");
    17041703    }
     1704    // Check for "(R)" in the description
     1705    position = event.description.indexOf(m_noRerun);
     1706    if (position != -1)
     1707    {
     1708      event.previouslyshown = true;
     1709    }
    17051710    // Move colon separated category from program-titles into description
    17061711    // Have seen "NRK2s historiekveld: Film: bla-bla"
     1712    tmpExp1 =  m_noNRKCategories;
    17071713    while (((position = tmpExp1.indexIn(event.title)) != -1) && (tmpExp1.cap(2).length() > 1)){
    17081714        event.title  = tmpExp1.cap(2);
    17091715        event.description = "(" + tmpExp1.cap(1) + ") " + event.description;