Ticket #8483: backport-changeset_r24121.2.diff
File backport-changeset_r24121.2.diff, 2.8 KB (added by , 14 years ago) |
---|
-
libs/libmythtv/eitfixup.cpp
103 103 m_nlYear2("([\\s]{1}[\\(]{1}[A-Z]{0,3}/?)([1-2]{2}[0-9]{2})([\\)]{1})"), 104 104 m_nlDirector("(?=\\svan\\s)(([A-Z]{1}[a-z]+\\s)|([A-Z]{1}\\.\\s))"), 105 105 m_nlCat("^(Amusement|Muziek|Informatief|Nieuws/actualiteiten|Jeugd|Animatie|Sport|Serie/soap|Kunst/Cultuur|Documentaire|Film|Natuur|Erotiek|Comedy|Misdaad|Religieus)\\.\\s"), 106 m_nlOmroep ("\\s\\(([A-Z]+/?)+\\)$") 106 m_nlOmroep ("\\s\\(([A-Z]+/?)+\\)$"), 107 m_noRerun(" \\(R\\)") 107 108 108 109 { 109 110 } … … 155 156 if (kFixNL & event.fixup) 156 157 FixNL(event); 157 158 159 if (kFixNO & event.fixup) 160 FixNO(event); 161 158 162 if (event.fixup) 159 163 { 160 164 if (!event.title.isEmpty()) … … 1483 1487 event.subtitle = event.subtitle.trimmed(); 1484 1488 1485 1489 } 1490 1491 /** \fn EITFixUp::FixNO(DBEventEIT&) const 1492 * \brief Use this to clean DVB-S guide in Norway. 1493 */ 1494 void EITFixUp::FixNO(DBEventEIT &event) const 1495 { 1496 // Check for "title (R)" in the title 1497 int position = event.title.indexOf(m_noRerun); 1498 if (position != -1) 1499 { 1500 event.previouslyshown = true; 1501 event.title = event.title.replace(m_noRerun, ""); 1502 } 1503 } 1504 -
libs/libmythtv/eithelper.cpp
773 773 fix[ 15U << 16] = // DVB-C Welho 774 774 EITFixUp::kFixFI; 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 -
libs/libmythtv/eitfixup.h
45 45 kFixPremiere = 0x0400, 46 46 kFixHDTV = 0x0800, 47 47 kFixNL = 0x1000, 48 kFixNO = 0x10000, 48 49 49 50 // Early fixups 50 51 kEFixForceISO8859_1 = 0x2000, … … 81 82 void FixFI(DBEventEIT &event) const; // Finland DVB-T 82 83 void FixPremiere(DBEventEIT &event) const; // german pay-tv Premiere 83 84 void FixNL(DBEventEIT &event) const; // Netherlands DVB-C 85 void FixNO(DBEventEIT &event) const; // Norwegian DVB-S 84 86 85 87 static QString AddDVBEITAuthority(uint chanid, const QString &id); 86 88 … … 170 172 const QRegExp m_nlDirector; 171 173 const QRegExp m_nlCat; 172 174 const QRegExp m_nlOmroep; 175 const QRegExp m_noRerun; 173 176 }; 174 177 175 178 #endif // EITFIXUP_H