[Dsmyth-checkins] SF.net SVN: dsmyth: [549] trunk/MythTVReader/NuvPropPage
Brought to you by:
tobbej
|
From: <to...@us...> - 2007-07-15 12:26:48
|
Revision: 549
http://svn.sourceforge.net/dsmyth/?rev=549&view=rev
Author: tobbej
Date: 2007-07-15 05:26:46 -0700 (Sun, 15 Jul 2007)
Log Message:
-----------
change start/end times to use the time when mythbackend started/ended recording and not when the program started/ended.
Modified Paths:
--------------
trunk/MythTVReader/NuvPropPage/NuvDBProps.cpp
trunk/MythTVReader/NuvPropPage/NuvToolTip.cpp
Modified: trunk/MythTVReader/NuvPropPage/NuvDBProps.cpp
===================================================================
--- trunk/MythTVReader/NuvPropPage/NuvDBProps.cpp 2007-07-15 12:25:13 UTC (rev 548)
+++ trunk/MythTVReader/NuvPropPage/NuvDBProps.cpp 2007-07-15 12:26:46 UTC (rev 549)
@@ -232,9 +232,9 @@
SetDlgItemText(hDlg,IDC_DBINFO_TITLE,CW2A(info.m_ProgramInfo.m_title.GetBuffer()));
SetDlgItemText(hDlg,IDC_DBINFO_SUBTITLE,CW2A(info.m_ProgramInfo.m_subtitle.GetBuffer()));
SetDlgItemText(hDlg,IDC_DBINFO_CATEGORY,CW2A(info.m_ProgramInfo.m_category.GetBuffer()));
- SetDlgItemText(hDlg,IDC_DBINFO_STARTTIME,(LPCSTR)info.m_ProgramInfo.m_recstartts.Format("%c"));
+ SetDlgItemText(hDlg,IDC_DBINFO_STARTTIME,(LPCSTR)info.m_ProgramInfo.m_startts.Format("%c"));
- CTimeSpan length=info.m_ProgramInfo.m_recendts-info.m_ProgramInfo.m_recstartts;
+ CTimeSpan length=info.m_ProgramInfo.m_endts-info.m_ProgramInfo.m_startts;
CAtlString format=length.GetDays()>0 ? "%D %H:%M:%S" : "%H:%M:%S";
SetDlgItemText(hDlg,IDC_DBINFO_LENGTH,(LPCSTR)length.Format(format));
SetDlgItemText(hDlg,IDC_DBINFO_DESCRIPTION,CW2A(info.m_ProgramInfo.m_description.GetBuffer()));
Modified: trunk/MythTVReader/NuvPropPage/NuvToolTip.cpp
===================================================================
--- trunk/MythTVReader/NuvPropPage/NuvToolTip.cpp 2007-07-15 12:25:13 UTC (rev 548)
+++ trunk/MythTVReader/NuvPropPage/NuvToolTip.cpp 2007-07-15 12:26:46 UTC (rev 549)
@@ -112,7 +112,7 @@
}
tip+="Recorded at: ";
- tip+=fileinfo.m_ProgramInfo.m_recstartts.Format("%c");
+ tip+=fileinfo.m_ProgramInfo.m_startts.Format("%c");
if(fileinfo.m_ProgramInfo.m_channame.GetLength()>0)
{
tip+=" on ";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|