Ticket #12049: 0001-FIX-Add-year-to-ProgramInfo-for-video.2.patch

File 0001-FIX-Add-year-to-ProgramInfo-for-video.2.patch, 1.2 KB (added by angela.schmid@…, 7 years ago)
  • mythtv/libs/libmyth/programinfo.cpp

    From b13ba5cb0148fdd5f3972d3f960b3a88a1cb1455 Mon Sep 17 00:00:00 2001
    From: angelaschmid <angela.schmid@wolke7.net>
    Date: Fri, 7 Feb 2014 03:18:30 +0100
    Subject: [PATCH] FIX: Add year to ProgramInfo for video.
    
    ---
     mythtv/libs/libmyth/programinfo.cpp |    3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
    index 7c0bd46..592dc8e 100644
    a b ProgramInfo::ProgramInfo(const QString &_pathname, 
    861861    director = _director;
    862862    programid = _programid;
    863863    inetref = _inetref;
     864    year = _year;
    864865
    865866    QDateTime cur = MythDate::current();
    866867    recstartts = cur.addSecs(((int)_length_in_minutes + 1) * -60);
    void ProgramInfo::ToMap(InfoMap &progMap, 
    16481649    progMap["inetref"] = inetref;
    16491650    progMap["catType"] = myth_category_type_to_string(catType);
    16501651
    1651     progMap["year"] = year ? QString::number(year) : "";
     1652    progMap["year"] = year > 1895 ? QString::number(year) : "";
    16521653
    16531654    progMap["partnumber"] = partnumber ? QString::number(partnumber) : "";
    16541655    progMap["parttotal"] = parttotal ? QString::number(parttotal) : "";