Ticket #5189: myth_eitfixup.diff

File myth_eitfixup.diff, 3.0 KB (added by anonymous, 12 years ago)
  • libs/libmythtv/eitfixup.cpp

    old new  
    1111EITFixUp::EITFixUp()
    1212    : m_bellYear("[\\(]{1}[0-9]{4}[\\)]{1}"),
    1313      m_bellActors("\\set\\s|,"),
    14       m_bellPPVTitleAllDay("\\s*\\(All Day.*\\)\\s*$"),
     14      m_bellPPVTitleInfo("\\s*\\(INFO\\)"),
     15      m_bellPPVTitlePressInfo("\\s*\\(PRESS INFO\\)"),
     16      m_bellPPVTitleRC("(\\s*\\(RC\\)|-RC\\s*\\(All Day\\))"),
     17      m_bellPPVTitleAllDay("(\\s*\\(All Day\\)|All Day,\\s*)"),
    1518      m_bellPPVTitleHD("^HD\\s?-\\s?"),
     19      m_bellPPVTitleDolby("(\\s*\\(5.1\\)|\\(DD)"),
     20      m_bellPPVTitleWide("(Widescreen|LBX)"),
    1621      m_bellPPVSubtitleAllDay("^All Day \\(.*\\sEastern\\)$"),
    1722      m_bellPPVDescriptionAllDay("^\\(.*\\sEastern\\)"),
    1823      m_bellPPVDescriptionAllDay2("^\\([0-9].*am-[0-9].*am\\sET\\)"),
     
    250255        event.description = event.description.replace("(Stereo)", "");
    251256    }
    252257
     258    // Check for "title (INFO)" in the title
     259    position = event.title.find(m_bellPPVTitleInfo);
     260    if (position != -1)
     261    {
     262        event.title = event.title.replace(m_bellPPVTitleInfo, "");
     263    }
     264
     265    // Check for "title (Press Info)" in the title
     266    position = event.title.find(m_bellPPVTitlePressInfo);
     267    if (position != -1)
     268    {
     269        event.title = event.title.replace(m_bellPPVTitlePressInfo, "");
     270    }
     271
     272    // Check for "title (RC)" in the title
     273    position = event.title.find(m_bellPPVTitleRC);
     274    if (position != -1)
     275    {
     276        event.title = event.title.replace(m_bellPPVTitleRC, "");
     277    }
     278
    253279    // Check for "title (All Day)" in the title
    254280    position = event.title.find(m_bellPPVTitleAllDay);
    255281    if (position != -1)
     
    292318    {
    293319        event.description = event.description.replace(m_bellPPVDescriptionEventId, "");
    294320    }
     321   
     322    // Check for widescreen title
     323    position = event.title.find(m_bellPPVTitleWide);
     324    if (position != -1)
     325    {
     326        event.videoProps |= VID_WIDESCREEN;
     327    }
    295328
     329    // Check for widescreen subtitle
     330    position = event.subtitle.find(m_bellPPVTitleWide);
     331    if (position != -1)
     332    {
     333        event.videoProps |= VID_WIDESCREEN;
     334    }
     335
     336    // Check for dolby in the title
     337    position = event.title.find(m_bellPPVTitleDolby);
     338    if (position != -1)
     339    {
     340        event.audioProps |= AUD_DOLBY;
     341    }
    296342}
    297343
    298344/** \fn EITFixUp::SetUKSubtitle(DBEvent&) const
  • libs/libmythtv/eitfixup.h

    old new  
    7979
    8080    const QRegExp m_bellYear;
    8181    const QRegExp m_bellActors;
     82    const QRegExp m_bellPPVTitleInfo;
     83    const QRegExp m_bellPPVTitlePressInfo;
     84    const QRegExp m_bellPPVTitleRC;
    8285    const QRegExp m_bellPPVTitleAllDay;
    8386    const QRegExp m_bellPPVTitleHD;
     87    const QRegExp m_bellPPVTitleDolby;
     88    const QRegExp m_bellPPVTitleWide;
    8489    const QRegExp m_bellPPVSubtitleAllDay;
    8590    const QRegExp m_bellPPVDescriptionAllDay;
    8691    const QRegExp m_bellPPVDescriptionAllDay2;