Skip to content

Commit

Permalink
Update guide title/subtitle/description with new DVB EIT data
Browse files Browse the repository at this point in the history
The title/subtitle/description in the guide is now updated
with the latest information received from DVB EIT. The title
is now updated with the newly received data unless the new
title is an empty string.
Previously, the title was only updated if the new title was
longer than the old title. This caused missed recordings when
recording rules are used that refer to the program title.
The same for the subtitle and the description.

Fixes #13057
  • Loading branch information
kmdewaal committed Mar 10, 2019
1 parent f1151d4 commit 62ae089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mythtv/libs/libmythtv/programdata.cpp
Expand Up @@ -625,19 +625,19 @@ uint DBEvent::UpdateDB(
QString linetref = inetref;
QDate loriginalairdate = originalairdate;

if (match.title.length() >= ltitle.length())
if (ltitle.isEmpty() && !match.title.isEmpty())
ltitle = match.title;

if (match.subtitle.length() >= lsubtitle.length())
if (lsubtitle.isEmpty() && !match.subtitle.isEmpty())
lsubtitle = match.subtitle;

if (match.description.length() >= ldesc.length())
if (ldesc.isEmpty() && !match.description.isEmpty())
ldesc = match.description;

if (lcategory.isEmpty() && !match.category.isEmpty())
lcategory = match.category;

if (!lairdate && !match.airdate)
if (!lairdate && match.airdate)
lairdate = match.airdate;

if (!loriginalairdate.isValid() && match.originalairdate.isValid())
Expand Down

0 comments on commit 62ae089

Please sign in to comment.