Ticket #6664: 6664-eit-set-deaf-signing-status-trunk.diff

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

Deaf signing EIT status for trunk

  • libs/libmythtv/eitfixup.h

     
    102102    const QRegExp m_ukSpaceStart;
    103103    const QRegExp m_ukSeries;
    104104    const QRegExp m_ukCC;
     105    const QRegExp m_ukSL;
    105106    const QRegExp m_ukYear;
    106107    const QRegExp m_uk24ep;
    107108    const QRegExp m_ukStarring;
  • libs/libmythtv/eitfixup.cpp

     
    3333      m_ukSeries("\\s*\\(?\\s*(?:Episode|Part|Pt)?\\s*(\\d{1,2})\\s*(?:of|/)\\s*(\\d{1,2})\\s*\\)?\\s*(?:\\.|:)?", Qt::CaseInsensitive),
    3434      m_ukCC("\\[(AD)(,(S)){,1}(,SL){,1}\\]|\\[(S)(,AD){,1}(,SL){,1}\\]|"
    3535             "\\[(SL)(,AD){,1}(,(S)){,1}\\]"),
     36      m_ukSL("\\[.*SL.*\\]"),
    3637      m_ukYear("[\\[\\(]([\\d]{4})[\\)\\]]"),
    3738      m_uk24ep("^\\d{1,2}:00[ap]m to \\d{1,2}:00[ap]m: "),
    3839      m_ukStarring("(?:Western\\s)?[Ss]tarring ([\\w\\s\\-']+)[Aa]nd\\s([\\w\\s\\-']+)[\\.|,](?:\\s)*(\\d{4})?(?:\\.\\s)?"),
     
    475476{
    476477    int position1;
    477478    int position2;
     479    int positionSL;
    478480    QString strFull;
    479481
    480482    bool isMovie = event.category.startsWith("Movie",Qt::CaseInsensitive);
     
    492494    // BBC 7 [Rpt of ...] case.
    493495    event.description = event.description.remove(m_ukBBC7rpt);
    494496
     497    // Determine deaf-signing status
     498    if ((positionSL = m_ukSL.indexIn(event.description)) != -1)
     499    {
     500        event.subtitleType |= SUB_SIGNED;
     501    }
     502
    495503    // Remove [AD,S] etc.
    496504    event.description = event.description.remove(m_ukCC);
    497505