movieinfo/moviebrowser: do not use any fake date to fill dateOfLastPlay and file.Time

Origin commit data
------------------
Commit: 08a4e95113
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-04 (Wed, 04 Jul 2018)

Origin message was:
------------------
- movieinfo/moviebrowser: do not use any fake date to fill dateOfLastPlay and file.Time
This commit is contained in:
vanhofen
2018-07-04 22:58:11 +02:00
parent b109402dd4
commit 8a6dc7904d
2 changed files with 15 additions and 25 deletions

View File

@@ -3859,9 +3859,16 @@ bool CMovieBrowser::getMovieInfoItem(MI_MOVIE_INFO& movie_info, MB_INFO_ITEM ite
*item_string = str_tmp;
break;
case MB_INFO_PREVPLAYDATE: // = 12,
tm_tmp = localtime(&movie_info.dateOfLastPlay);
snprintf(str_tmp, sizeof(str_tmp),"%02d.%02d.%02d",tm_tmp->tm_mday,(tm_tmp->tm_mon)+ 1, tm_tmp->tm_year >= 100 ? tm_tmp->tm_year-100 : tm_tmp->tm_year);
*item_string = str_tmp;
if (movie_info.dateOfLastPlay == 0)
{
*item_string = "---";
}
else
{
tm_tmp = localtime(&movie_info.dateOfLastPlay);
snprintf(str_tmp, sizeof(str_tmp),"%02d.%02d.%02d",tm_tmp->tm_mday,(tm_tmp->tm_mon)+ 1, tm_tmp->tm_year >= 100 ? tm_tmp->tm_year-100 : tm_tmp->tm_year);
*item_string = str_tmp;
}
break;
case MB_INFO_RECORDDATE: // = 13,