Skip to content
Browse files

Fix inclusion of year of release in services Program object.

  • Loading branch information...
1 parent e3ee97c commit 5fde814375e6d87ad42d3eade9bed100e358f876 @stuartm stuartm committed Oct 25, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/programs/mythbackend/services/serviceUtil.cpp
View
6 mythtv/programs/mythbackend/services/serviceUtil.cpp
@@ -73,6 +73,12 @@ void FillProgramInfo( DTC::Program *pProgram,
if (pInfo->GetOriginalAirDate().isValid())
pProgram->setAirdate( pInfo->GetOriginalAirDate() );
+ else if (pInfo->GetYearOfInitialRelease() > 0)
+ {
+ QDate year;
+ year.setDate(pInfo->GetYearOfInitialRelease(), 1, 1);
+ pProgram->setAirdate( year );
+ }
pProgram->setDescription( pInfo->GetDescription() );
pProgram->setInetref ( pInfo->GetInetRef() );

0 comments on commit 5fde814

Please sign in to comment.
Something went wrong with that request. Please try again.