{ "originaltitle", LISTITEM_ORIGINALTITLE },
{ "lastplayed", LISTITEM_LASTPLAYED },
{ "playcount", LISTITEM_PLAYCOUNT },
- { "discnumber", LISTITEM_DISC_NUMBER }};
+ { "discnumber", LISTITEM_DISC_NUMBER },
+ { "dateadded", LISTITEM_DATE_ADDED }};
const infomap visualisation[] = {{ "locked", VISUALISATION_LOCKED },
{ "preset", VISUALISATION_PRESET },
str.Format("%d", val);
return str;
}
+ break;
}
+ case LISTITEM_DATE_ADDED:
+ if (item->HasVideoInfoTag() && item->GetVideoInfoTag()->m_dateAdded.IsValid())
+ return item->GetVideoInfoTag()->m_dateAdded.GetAsLocalizedDate();
+ break;
}
return "";
}
#define LISTITEM_FILE_EXTENSION (LISTITEM_START + 75)
#define LISTITEM_IS_RESUMABLE (LISTITEM_START + 76)
#define LISTITEM_PERCENT_PLAYED (LISTITEM_START + 77)
+#define LISTITEM_DATE_ADDED (LISTITEM_START + 78)
#define LISTITEM_PROPERTY_START (LISTITEM_START + 200)
#define LISTITEM_PROPERTY_END (LISTITEM_PROPERTY_START + 1000)
" artist : list (['U2'])\n"
" votes : string (12345 votes)\n"
" trailer : string (/home/user/trailer.avi)\n"
+ " dateadded : string (%Y-%m-%d %h:%m:%s = 2009-04-05 23:16:04)\n"
"\n"
"Music Values:\n"
" tracknumber : integer (8)\n"
if (strlen(tmp) == 10)
self->item->m_dateTime.SetDate(atoi(tmp.Right(4).c_str()), atoi(tmp.Mid(3,4).c_str()), atoi(tmp.Left(2).c_str()));
}
+ else if (strcmpi(PyString_AsString(key), "dateadded") == 0)
+ self->item->GetVideoInfoTag()->m_dateAdded.SetFromDBDateTime(tmp);
}
}
else if (strcmpi(cType, "music") == 0)