Skip to content

Commit

Permalink
Backport [24300] to 0.23-fixes. Include airdate(year) in the metadata…
Browse files Browse the repository at this point in the history
… pulled by LoadProgramFromRecorded(), this fixes the disappearing year and rating information when update/add events are received in the Watch Recordings screen. Refs #8396

git-svn-id: http://svn.mythtv.org/svn/branches/release-0-23-fixes@24301 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
stuartm committed Apr 29, 2010
1 parent caae36d commit 6e08adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmyth/programinfo.cpp
Expand Up @@ -1376,7 +1376,8 @@ bool ProgramInfo::LoadProgramFromRecorded(
" r.commflagged, r.cutlist, r.autoexpire, "//28-30
" r.editing, r.bookmark, r.watched, "//31-33
" r.preserve, r.transcoded, r.deletepending, "//34-36
" p.audioprop+0, p.videoprop+0, p.subtitletypes+0 "//37-39
" p.audioprop+0, p.videoprop+0, p.subtitletypes+0, "//37-39
" p.airdate "//40
"FROM recorded AS r "
"LEFT JOIN (channel AS c, recordedprogram AS p) "
"ON (r.chanid = c.chanid AND "
Expand Down Expand Up @@ -1418,6 +1419,7 @@ bool ProgramInfo::LoadProgramFromRecorded(
QDateTime::fromString(query.value(14).toString(),
Qt::ISODate);

year = query.value(40).toString();
stars = query.value(15).toDouble();
repeat = query.value(16).toInt();

Expand Down

0 comments on commit 6e08adf

Please sign in to comment.