Ticket #6664: 6664-eit-set-deaf-signing-status-0-21-fixes.diff

File 6664-eit-set-deaf-signing-status-0-21-fixes.diff, 1.6 KB (added by Nick Morrott <knowledgejunkie <at> gmail <dot> com>, 10 years ago)

Deaf signing EIT status for 0.21-fixes

  • libs/libmythtv/eitfixup.h

     
    9999    const QRegExp m_ukSpaceStart;
    100100    const QRegExp m_ukSeries;
    101101    const QRegExp m_ukCC;
     102    const QRegExp m_ukSL;
    102103    const QRegExp m_ukYear;
    103104    const QRegExp m_uk24ep;
    104105    const QRegExp m_ukStarring;
  • libs/libmythtv/eitfixup.cpp

     
    2828      m_ukSeries("\\s*\\(?\\s*(?:Episode|Part|Pt)?\\s*(\\d{1,2})\\s*(?:of|/)\\s*(\\d{1,2})\\s*\\)?\\s*(?:\\.|:)?", false),
    2929      m_ukCC("\\[(AD)(,(S)){,1}(,SL){,1}\\]|\\[(S)(,AD){,1}(,SL){,1}\\]|"
    3030             "\\[(SL)(,AD){,1}(,(S)){,1}\\]"),
     31      m_ukSL("\\[.*SL.*\\]"),
    3132      m_ukYear("[\\[\\(]([\\d]{4})[\\)\\]]"),
    3233      m_uk24ep("^\\d{1,2}:00[ap]m to \\d{1,2}:00[ap]m: "),
    3334      m_ukStarring("(?:Western\\s)?[Ss]tarring ([\\w\\s\\-']+)[Aa]nd\\s([\\w\\s\\-']+)[\\.|,](?:\\s)*(\\d{4})?(?:\\.\\s)?"),
     
    420421{
    421422    int position1;
    422423    int position2;
     424    int positionSL;
    423425    QString strFull;
    424426
    425427    bool isMovie = event.category.startsWith("Movie",false);
     
    437439    // BBC 7 [Rpt of ...] case.
    438440    event.description = event.description.remove(m_ukBBC7rpt);
    439441
     442    // Determine deaf-signing status
     443    if ((positionSL = m_ukSL.search(event.description)) != -1)
     444    {
     445        event.subtitleType |= SUB_SIGNED;
     446    }
     447
    440448    // Remove [AD,S] etc.
    441449    event.description = event.description.remove(m_ukCC);
    442450