Skip to content

Commit

Permalink
Strip 'Brand New' from the start of a title, i know it's new.
Browse files Browse the repository at this point in the history
MythTV will record it for me, i don't need my guide data to mess
with my program titles....

Cherry picked from 4b13570
  • Loading branch information
stuarta committed Jul 29, 2013
1 parent 4e82a0b commit ee5df10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/eitfixup.cpp
Expand Up @@ -34,6 +34,7 @@ EITFixUp::EITFixUp()
m_dishPPVCode("\\s*\\(([A-Z]|[0-9]){5}\\)\\s*$"),
m_ukThen("\\s*(Then|Followed by) 60 Seconds\\.", Qt::CaseInsensitive),
m_ukNew("(New\\.|\\s*(Brand New|New)\\s*(Series|Episode)\\s*[:\\.\\-])",Qt::CaseInsensitive),
m_ukNewTitle("^Brand New\\s*",Qt::CaseInsensitive),
m_ukCEPQ("[:\\!\\.\\?]"),
m_ukColonPeriod("[:\\.]"),
m_ukDotSpaceStart("^\\. "),
Expand Down Expand Up @@ -717,6 +718,7 @@ void EITFixUp::FixUK(DBEventEIT &event) const
// BBC three case (could add another record here ?)
event.description = event.description.remove(m_ukThen);
event.description = event.description.remove(m_ukNew);
event.title = event.title.remove(m_ukNewTitle);

// Removal of Class TV, CBBC and CBeebies etc..
event.title = event.title.remove(m_ukTitleRemove);
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/eitfixup.h
Expand Up @@ -125,6 +125,7 @@ class EITFixUp
const QRegExp m_dishPPVCode;
const QRegExp m_ukThen;
const QRegExp m_ukNew;
const QRegExp m_ukNewTitle;
const QRegExp m_ukCEPQ;
const QRegExp m_ukColonPeriod;
const QRegExp m_ukDotSpaceStart;
Expand Down

0 comments on commit ee5df10

Please sign in to comment.