Skip to content

Commit

Permalink
Add a UK fixup to remove "All New To 4Music!" which is breaking
Browse files Browse the repository at this point in the history
proper creation of subtitles and therefore duplicate matching.
  • Loading branch information
stuarta committed Nov 16, 2011
1 parent e16613a commit 9f9dcf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/eitfixup.cpp
Expand Up @@ -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"),
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/eitfixup.h
Expand Up @@ -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;
Expand Down

0 comments on commit 9f9dcf5

Please sign in to comment.