Ticket #10799: eitfixup.patch

File eitfixup.patch, 2.2 KB (added by jarlethorsen@…, 7 years ago)

patchfile

  • mythtv/libs/libmythtv/eitfixup.cpp

    diff --git a/mythtv/libs/libmythtv/eitfixup.cpp b/mythtv/libs/libmythtv/eitfixup.cpp
    index 8148018..7f8ecdb 100644
    a b EITFixUp::EITFixUp() 
    115115      m_nlCat("^(Amusement|Muziek|Informatief|Nieuws/actualiteiten|Jeugd|Animatie|Sport|Serie/soap|Kunst/Cultuur|Documentaire|Film|Natuur|Erotiek|Comedy|Misdaad|Religieus)\\.\\s"),
    116116      m_nlOmroep ("\\s\\(([A-Z]+/?)+\\)$"),
    117117      m_noRerun("\\(R\\)"),
     118      m_noHD("[\\(\\[]HD[\\)\\]]"),
    118119      m_noColonSubtitle("^([^:]+): (.+)"),
    119120      m_noNRKCategories("^(Superstrek[ea]r|Supersomm[ea]r|Superjul|Barne-tv|Fantorangen|Kuraffen|Supermorg[eo]n|Julemorg[eo]n|Sommermorg[eo]n|"
    120121                        "Kuraffen-TV|Sport i dag|NRKs sportsl.rdag|NRKs sportss.ndag|Dagens dokumentar|"
    void EITFixUp::FixCategory(DBEventEIT &event) const 
    16991700 */
    17001701void EITFixUp::FixNO(DBEventEIT &event) const
    17011702{
    1702     // Check for "title (R)" in the title
    1703     int position = event.title.indexOf(m_noRerun);
     1703    int position;
     1704  // Check for "title (R)" in the title
     1705    position = event.title.indexOf(m_noRerun);
    17041706    if (position != -1)
    17051707    {
    17061708      event.previouslyshown = true;
    17071709      event.title = event.title.replace(m_noRerun, "");
    17081710    }
     1711    // Check for "subtitle (HD)" in the subtitle
     1712    position = event.subtitle.indexOf(m_noHD);
     1713    if (position != -1)
     1714    {
     1715      event.videoProps |= VID_HDTV;
     1716      event.subtitle = event.subtitle.replace(m_noHD, "");
     1717    }
     1718   // Check for "description (HD)" in the description
     1719    position = event.description.indexOf(m_noHD);
     1720    if (position != -1)
     1721    {
     1722      event.videoProps |= VID_HDTV;
     1723      event.description = event.description.replace(m_noHD, "");
     1724    }
    17091725}
    17101726
    17111727/** \fn EITFixUp::FixNRK_DVBT(DBEventEIT&) const
  • mythtv/libs/libmythtv/eitfixup.h

    diff --git a/mythtv/libs/libmythtv/eitfixup.h b/mythtv/libs/libmythtv/eitfixup.h
    index a724506..aab9df7 100644
    a b class EITFixUp 
    190190    const QRegExp m_nlCat;
    191191    const QRegExp m_nlOmroep;
    192192    const QRegExp m_noRerun;
     193    const QRegExp m_noHD;
    193194    const QRegExp m_noColonSubtitle;
    194195    const QRegExp m_noNRKCategories;
    195196    const QRegExp m_noPremiere;