Ticket #8331: FixNO.patch
File FixNO.patch, 3.0 KB (added by , 14 years ago) |
---|
-
mythtv/libs/libmythtv/eitfixup.cpp
85 85 m_RTLEpisodeNo2("^(\\d{1,2}\\/[IVX]+)\\.*\\s*"), 86 86 m_fiRerun("\\ ?Uusinta[a-zA-Z\\ ]*\\.?"), 87 87 m_fiRerun2("\\([Uu]\\)"), 88 m_noRerun(" \\(R\\)"), 88 89 m_Stereo("(Stereo)"), 89 90 m_dePremiereInfos("([^.]+)?\\s?([0-9]{4})\\.\\s[0-9]+\\sMin\\.(?:\\sVon" 90 91 "\\s([^,]+)(?:,|\\su\\.\\sa\\.)\\smit\\s(.+)\\.)?"), … … 148 149 149 150 if (kFixFI & event.fixup) 150 151 FixFI(event); 152 153 if (kFixNO & event.fixup) 154 FixNO(event); 151 155 152 156 if (kFixPremiere & event.fixup) 153 157 FixPremiere(event); … … 1497 1501 event.categoryType = kCategoryTVShow; 1498 1502 } 1499 1503 } 1504 1505 /** \fn EITFixUp::FixNO(DBEventEIT&) const 1506 * \brief Use this to clean DVB-S guide in Norway. 1507 */ 1508 void EITFixUp::FixNO(DBEventEIT &event) const 1509 { 1510 // Check for "title (R)" in the title 1511 int position = event.title.indexOf(m_noRerun); 1512 if (position != -1) 1513 { 1514 event.previouslyshown = true; 1515 event.title = event.title.replace(m_noRerun, ""); 1516 } 1517 } -
mythtv/libs/libmythtv/eithelper.cpp
773 773 fix[ 15U << 16] = // DVB-C Welho 774 774 EITFixUp::kFixFI | EITFixUp::kFixCategory; 775 775 776 // DVB-S(2) Thor 0.8W Norwegian 777 fix[70U << 16] = EITFixUp::kFixNO; 778 776 779 /////////////////////////////////////////////////////////////////////////// 777 780 // Special Early fixups for providers that break DVB EIT spec. 778 781 // transport_id<<32 | netword_id<<16 | service_id -
mythtv/libs/libmythtv/eitfixup.h
48 48 kFixHDTV = 0x0800, 49 49 kFixNL = 0x1000, 50 50 kFixCategory = 0x8000, 51 kFixNO = 0x10000, 51 52 52 53 // Early fixups 53 54 kEFixForceISO8859_1 = 0x2000, … … 82 83 void FixMCA(DBEventEIT &event) const; // MultiChoice Africa DVB-S 83 84 void FixRTL(DBEventEIT &event) const; // RTL group DVB 84 85 void FixFI(DBEventEIT &event) const; // Finland DVB-T 86 void FixNO(DBEventEIT &event) const; // Norwegian DVB-S 85 87 void FixPremiere(DBEventEIT &event) const; // german pay-tv Premiere 86 88 void FixNL(DBEventEIT &event) const; // Netherlands DVB-C 87 89 void FixCategory(DBEventEIT &event) const; // Generic Category fixes … … 156 158 const QRegExp m_RTLEpisodeNo2; 157 159 const QRegExp m_fiRerun; 158 160 const QRegExp m_fiRerun2; 161 const QRegExp m_noRerun; 159 162 const QRegExp m_Stereo; 160 163 const QRegExp m_dePremiereInfos; 161 164 const QRegExp m_dePremiereOTitle;