Ticket #3980: bbc7-rpt-eit-fixup.patch

File bbc7-rpt-eit-fixup.patch, 1.5 KB (added by mythtv-dev.spam@…, 13 years ago)

bbc7-eit-rpt-fixup.patch

  • libs/libmythtv/eitfixup.cpp

     
    3030      m_ukYear("[\\[\\(]([\\d]{4})[\\)\\]]"),
    3131      m_uk24ep("^\\d{1,2}:00[ap]m to \\d{1,2}:00[ap]m: "),
    3232      m_ukStarring("(?:Western\\s)?[Ss]tarring ([\\w\\s\\-']+)[Aa]nd\\s([\\w\\s\\-']+)[\\.|,](?:\\s)*(\\d{4})?(?:\\.\\s)?"),
     33      m_ukBBC7rpt("\\[Rptd?[^]]+\\d{1,2}\\.\\d{1,2}[ap]m\\]\\."),
    3334      m_comHemCountry("^(\\(.+\\))?\\s?([^ ]+)\\s([^\\.0-9]+)"
    3435                      "(?:\\sfrån\\s([0-9]{4}))(?:\\smed\\s([^\\.]+))?\\.?"),
    3536      m_comHemDirector("[Rr]egi"),
     
    308309    event.description = event.description.replace(m_ukNew, "");
    309310    event.title  = event.title.replace(m_ukT4, "");
    310311
     312    // BBC 7 [Rpt of ...] case.
     313    event.description = event.description.replace(m_ukBBC7rpt, "");
     314
    311315    // First join up event data, that's spread across title/desc
    312316    // at this point there is no subtitle.
    313317    if (event.title.endsWith("...") ||
  • libs/libmythtv/eitfixup.h

     
    8686    const QRegExp m_ukYear;
    8787    const QRegExp m_uk24ep;
    8888    const QRegExp m_ukStarring;
     89    const QRegExp m_ukBBC7rpt;
    8990    const QRegExp m_comHemCountry;
    9091    const QRegExp m_comHemDirector;
    9192    const QRegExp m_comHemActor;