Ticket #5922: myth-eitfix-fi-netwid-fixed.patch

File myth-eitfix-fi-netwid-fixed.patch, 2.1 KB (added by ikke@…, 17 years ago)

patch with network ids with a number other than zero

  • libs/libmythtv/eitfixup.cpp

     
    7979      m_RTLSubtitle5("^'(.+)'\\.\\s*"),
    8080      m_RTLEpisodeNo1("^(Folge\\s\\d{1,4})\\.*\\s*"),
    8181      m_RTLEpisodeNo2("^(\\d{1,2}\\/[IVX]+)\\.*\\s*"),
    82       m_fiRerun("Uusinta.?"),
     82      m_fiRerun("Uusinta[a-zA-Z\\ ]*\\.?"),
     83      m_fiRerun2("\\([Uu]\\)"),
    8384      m_Stereo("(Stereo)"),
    8485      m_dePremiereInfos("([^.]+)?\\s?([0-9]{4})\\.\\s[0-9]+\\sMin\\.(?:\\sVon"
    8586                        "\\s([^,]+)(?:,|\\su\\.\\sa\\.)\\smit\\s(.+)\\.)?"),
     
    11191120        event.description = event.description.replace(m_fiRerun, "");
    11201121    }
    11211122
     1123    position = event.description.find(m_fiRerun2);
     1124    if (position != -1)
     1125    {
     1126        event.previouslyshown = true;
     1127        event.description = event.description.replace(m_fiRerun2, "");
     1128    }
     1129
    11221130    // Check for (Stereo) in the decription and set the <audio> tags
    11231131    position = event.description.find(m_Stereo);
    11241132    if (position != -1)
  • libs/libmythtv/eithelper.cpp

     
    847847        fix[ 1094LL << 32 | 1 << 16 | 17028 ] = // NT1
    848848        fix[ 1100LL << 32 | 1 << 16 |  8710 ] = // NRJ 12
    849849        EITFixUp::kEFixForceISO8859_15;
     850
     851    // DVB-T Espoo, Finland
     852    fix[ 8438U << 16] = EITFixUp::kFixFI;
     853
     854    // DVB-C Welho Finland
     855    fix[ 42249U << 16] = EITFixUp::kFixFI;
     856    fix[ 15U << 16] = EITFixUp::kFixFI;
    850857}
    851858
    852859static int calc_eit_utc_offset(void)
  • libs/libmythtv/eitfixup.h

     
    144144    const QRegExp m_RTLEpisodeNo1;
    145145    const QRegExp m_RTLEpisodeNo2;
    146146    const QRegExp m_fiRerun;
     147    const QRegExp m_fiRerun2;
    147148    const QRegExp m_Stereo;
    148149    const QRegExp m_dePremiereInfos;
    149150    const QRegExp m_dePremiereOTitle;