Skip to content

Commit 9f9dcf5

Browse files
committed
Add a UK fixup to remove "All New To 4Music!" which is breaking
proper creation of subtitles and therefore duplicate matching.
1 parent e16613a commit 9f9dcf5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

mythtv/libs/libmythtv/eitfixup.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ EITFixUp::EITFixUp()
5555
m_ukYearColon("^[\\d]{4}:"),
5656
m_ukExclusionFromSubtitle("(starring|stars\\s|drama|series|sitcom)",Qt::CaseInsensitive),
5757
m_ukCompleteDots("^\\.\\.+$"),
58+
m_ukAllNew("All New To 4Music!\\s?"),
5859
m_comHemCountry("^(\\(.+\\))?\\s?([^ ]+)\\s([^\\.0-9]+)"
5960
"(?:\\sfrån\\s([0-9]{4}))(?:\\smed\\s([^\\.]+))?\\.?"),
6061
m_comHemDirector("[Rr]egi"),
@@ -680,6 +681,9 @@ void EITFixUp::FixUK(DBEventEIT &event) const
680681
// BBC 7 [Rpt of ...] case.
681682
event.description = event.description.remove(m_ukBBC7rpt);
682683

684+
// "All New To 4Music!
685+
event.description = event.description.remove(m_ukAllNew);
686+
683687
// Remove [AD,S] etc.
684688
QRegExp tmpCC = m_ukCC;
685689
if ((position1 = tmpCC.indexIn(event.description)) != -1)

mythtv/libs/libmythtv/eitfixup.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ class EITFixUp
134134
const QRegExp m_ukYearColon;
135135
const QRegExp m_ukExclusionFromSubtitle;
136136
const QRegExp m_ukCompleteDots;
137+
const QRegExp m_ukAllNew;
137138
const QRegExp m_comHemCountry;
138139
const QRegExp m_comHemDirector;
139140
const QRegExp m_comHemActor;

0 commit comments

Comments
 (0)