Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9f9dcf5ba55133c7f48c58eed7e0db8feaeb950a 1 parent e16613a
@stuarta stuarta authored
View
4 mythtv/libs/libmythtv/eitfixup.cpp
@@ -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)
View
1  mythtv/libs/libmythtv/eitfixup.h
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.