Permalink
Browse files

Add a UK fixup to remove "All New To 4Music!" which is breaking

proper creation of subtitles and therefore duplicate matching.
  • Loading branch information...
1 parent e16613a commit 9f9dcf5ba55133c7f48c58eed7e0db8feaeb950a @stuarta stuarta committed Nov 16, 2011
Showing with 5 additions and 0 deletions.
  1. +4 −0 mythtv/libs/libmythtv/eitfixup.cpp
  2. +1 −0 mythtv/libs/libmythtv/eitfixup.h
@@ -55,6 +55,7 @@ EITFixUp::EITFixUp()
m_ukYearColon("^[\\d]{4}:"),
m_ukExclusionFromSubtitle("(starring|stars\\s|drama|series|sitcom)",Qt::CaseInsensitive),
m_ukCompleteDots("^\\.\\.+$"),
+ m_ukAllNew("All New To 4Music!\\s?"),
m_comHemCountry("^(\\(.+\\))?\\s?([^ ]+)\\s([^\\.0-9]+)"
"(?:\\sfrån\\s([0-9]{4}))(?:\\smed\\s([^\\.]+))?\\.?"),
m_comHemDirector("[Rr]egi"),
@@ -680,6 +681,9 @@ void EITFixUp::FixUK(DBEventEIT &event) const
// BBC 7 [Rpt of ...] case.
event.description = event.description.remove(m_ukBBC7rpt);
+ // "All New To 4Music!
+ event.description = event.description.remove(m_ukAllNew);
+
// Remove [AD,S] etc.
QRegExp tmpCC = m_ukCC;
if ((position1 = tmpCC.indexIn(event.description)) != -1)
@@ -134,6 +134,7 @@ class EITFixUp
const QRegExp m_ukYearColon;
const QRegExp m_ukExclusionFromSubtitle;
const QRegExp m_ukCompleteDots;
+ const QRegExp m_ukAllNew;
const QRegExp m_comHemCountry;
const QRegExp m_comHemDirector;
const QRegExp m_comHemActor;

0 comments on commit 9f9dcf5

Please sign in to comment.