Ticket #11226: eitfixNL_DVB-S.diff

File eitfixNL_DVB-S.diff, 3.3 KB (added by reidjr@…, 11 years ago)

git diff against 0.26-fixes, should apply against master

  • mythtv/libs/libmythtv/eitfixup.cpp

    diff --git a/mythtv/libs/libmythtv/eitfixup.cpp b/mythtv/libs/libmythtv/eitfixup.cpp
    index 8148018..5134328 100644
    a b EITFixUp::EITFixUp() 
    105105      m_nlRepeat("herh."),
    106106      m_nlHD("\\sHD$"),
    107107      m_nlSub("\\sAfl\\.:\\s([^\\.]+)\\."),
     108      m_nlSub2("\\s\"([^\"]+)\""),
    108109      m_nlActors("\\sMet:\\s.+e\\.a\\."),
    109110      m_nlPres("\\sPresentatie:\\s([^\\.]+)\\."),
    110111      m_nlPersSeparator("(, |\\sen\\s)"),
    void EITFixUp::FixNL(DBEventEIT &event) const 
    15421543        event.categoryType = kCategoryNone;
    15431544    }
    15441545
     1546    // Film - categories are usually not Films
     1547    if (event.category.startsWith("Film -"))
     1548    {
     1549        event.categoryType = kCategorySeries;
     1550    }
     1551
    15451552    // Get stereo info
    15461553    int position;
    15471554    if ((position = fullinfo.indexOf(m_Stereo)) != -1)
    void EITFixUp::FixNL(DBEventEIT &event) const 
    15761583        event.title = event.title.replace(m_nlHD, "");
    15771584    }
    15781585
    1579     // Try to make subtitle
     1586    // Try to make subtitle from Afl.:
    15801587    QRegExp tmpSub = m_nlSub;
    15811588    QString tmpSubString;
    15821589    if (tmpSub.indexIn(fullinfo) != -1)
    void EITFixUp::FixNL(DBEventEIT &event) const 
    15871594        fullinfo = fullinfo.replace(tmpSub.cap(0), "");
    15881595    }
    15891596
     1597    // Try to make subtitle from " "
     1598    QRegExp tmpSub2 = m_nlSub2;
     1599    //QString tmpSubString2;
     1600    if (tmpSub2.indexIn(fullinfo) != -1)
     1601    {
     1602        tmpSubString = tmpSub2.cap(0);
     1603        tmpSubString = tmpSubString.right(tmpSubString.length() - 2);
     1604        event.subtitle = tmpSubString.left(tmpSubString.length() -1);
     1605        fullinfo = fullinfo.replace(tmpSub2.cap(0), "");
     1606    }
     1607
     1608
    15901609    // This is trying to catch the case where the subtitle is in the main title
    15911610    // but avoid cases where it isn't a subtitle e.g cd:uk
    15921611    if (((position = event.title.indexOf(":")) != -1) &&
  • mythtv/libs/libmythtv/eitfixup.h

    diff --git a/mythtv/libs/libmythtv/eitfixup.h b/mythtv/libs/libmythtv/eitfixup.h
    index a724506..0f9028a 100644
    a b class EITFixUp 
    180180    const QRegExp m_nlRepeat;
    181181    const QRegExp m_nlHD;
    182182    const QRegExp m_nlSub;
     183    const QRegExp m_nlSub2;
    183184    const QRegExp m_nlActors;
    184185    const QRegExp m_nlPres;
    185186    const QRegExp m_nlPersSeparator;
  • mythtv/libs/libmythtv/eithelper.cpp

    diff --git a/mythtv/libs/libmythtv/eithelper.cpp b/mythtv/libs/libmythtv/eithelper.cpp
    index 9ee2cc8..8b43d7f 100644
    a b static void init_fixup(QMap<uint64_t,uint> &fix) 
    844844    fix[   6LL << 32 |  133 << 16 | 129] = EITFixUp::kFixHDTV;
    845845    fix[   6LL << 32 |  133 << 16 | 130] = EITFixUp::kFixHDTV;
    846846
    847     // Netherlands
     847    // Netherlands DVB-C
    848848    fix[ 1000U << 16] = EITFixUp::kFixNL;
     849    // Canal Digitaal DVB-S 19.2 Dutch/Belgian ONID 53 covers all CanalDigitaal TiD
     850    fix[   53U << 16] = EITFixUp::kFixNL;
     851    // Canal Digitaal DVB-S 23.5 Dutch/Belgian
     852    fix[  3202LL << 32 | 3U << 16] = EITFixUp::kFixNL;
     853    fix[  3208LL << 32 | 3U << 16] = EITFixUp::kFixNL;
     854    fix[  3211LL << 32 | 3U << 16] = EITFixUp::kFixNL;
     855    fix[  3222LL << 32 | 3U << 16] = EITFixUp::kFixNL;
     856    fix[  3225LL << 32 | 3U << 16] = EITFixUp::kFixNL;
    849857
    850858    // Finland
    851859    fix[      8438U << 16] = // DVB-T Espoo