Ticket #3682: program_info_year.patch

File program_info_year.patch, 1.5 KB (added by anonymous, 14 years ago)

patch to revision 13783 to put the 'year' field in the programinfo (updated to correct an error)

  • libs/libmythtv/programinfo.cpp

    old new  
    304304    STR_TO_LIST(seriesid)
    305305    STR_TO_LIST(programid)
    306306    DATETIME_TO_LIST(lastmodified)
     307    STR_TO_LIST(year)
    307308    FLOAT_TO_LIST(stars)
    308309    DATETIME_TO_LIST(QDateTime(originalAirDate))
    309310    INT_TO_LIST(hasAirDate)     
     
    403404    STR_FROM_LIST(seriesid)
    404405    STR_FROM_LIST(programid)
    405406    DATETIME_FROM_LIST(lastmodified)
     407    STR_FROM_LIST(year)
    406408    FLOAT_FROM_LIST(stars)
    407409    DATE_FROM_LIST(originalAirDate);
    408410    INT_FROM_LIST(hasAirDate);
  • programs/mythbackend/mainserver.cpp

    old new  
    10581058        "recorded.progend, recorded.stars, "
    10591059        "recordedprogram.stereo, recordedprogram.hdtv, "
    10601060        "recordedprogram.closecaptioned, transcoded, "
    1061         "recorded.recpriority "
     1061        "recorded.recpriority, recordedprogram.airdate "
    10621062        "FROM recorded "
    10631063        "LEFT JOIN record ON recorded.recordid = record.recordid "
    10641064        "LEFT JOIN channel ON recorded.chanid = channel.chanid "
     
    11881188            proginfo->playgroup = QString::fromUtf8(query.value(27).toString());
    11891189
    11901190            proginfo->recpriority = query.value(36).toInt();
     1191            proginfo->year = QString::fromUtf8(query.value(37).toString());
    11911192
    11921193            proginfo->recstatus = rsRecorded;
    11931194            if (proginfo->recendts > rectime)