Ticket #12087: alsoinhd2.patch

File alsoinhd2.patch, 1.4 KB (added by Alan Nimmo <alanjnimmo@…>, 6 years ago)

Fixed version of the previous patch

  • mythtv/libs/libmythtv/eitfixup.cpp

    diff --git a/mythtv/libs/libmythtv/eitfixup.cpp b/mythtv/libs/libmythtv/eitfixup.cpp
    index 2b83017..c79c420 100644
    a b EITFixUp::EITFixUp() 
    5959      m_ukCompleteDots("^\\.\\.+$"),
    6060      m_ukQuotedSubtitle("(?:^')([\\w\\s\\-,]+)(?:\\.' )"),
    6161      m_ukAllNew("All New To 4Music!\\s?"),
     62      m_ukAlsoInHD("Also in HD\\."),
    6263      m_comHemCountry("^(\\(.+\\))?\\s?([^ ]+)\\s([^\\.0-9]+)"
    6364                      "(?:\\sfrån\\s([0-9]{4}))(?:\\smed\\s([^\\.]+))?\\.?"),
    6465      m_comHemDirector("[Rr]egi"),
    void EITFixUp::FixUK(DBEventEIT &event) const 
    735736    // "All New To 4Music!
    736737    event.description = event.description.remove(m_ukAllNew);
    737738
     739    // Removal of 'Also in HD' text
     740    event.description = event.description.remove(m_ukAlsoInHD);
     741
    738742    // Remove [AD,S] etc.
    739743    QRegExp tmpCC = m_ukCC;
    740744    if ((position1 = tmpCC.indexIn(event.description)) != -1)
  • mythtv/libs/libmythtv/eitfixup.h

    diff --git a/mythtv/libs/libmythtv/eitfixup.h b/mythtv/libs/libmythtv/eitfixup.h
    index 743fc94..b9f4cb4 100644
    a b class EITFixUp 
    151151    const QRegExp m_ukCompleteDots;
    152152    const QRegExp m_ukQuotedSubtitle;
    153153    const QRegExp m_ukAllNew;
     154    const QRegExp m_ukAlsoInHD;
    154155    const QRegExp m_comHemCountry;
    155156    const QRegExp m_comHemDirector;
    156157    const QRegExp m_comHemActor;