This commit fixes the wrong dateAdded value for archived videos. In order to get a valid dateAdded
time we have to grab the actual archive path instead of the vfs wrapped path inside the archive.
if (URIUtils::IsStack(strFileNameAndPath))
file = CStackDirectory::GetFirstStackedFile(strFileNameAndPath);
+ if (URIUtils::IsInArchive(file))
+ file = CURL(file).GetHostName();
+
CDateTime dateAdded;
// Skip looking at the files ctime/mtime if defined by the user through as.xml
if (g_advancedSettings.m_iVideoLibraryDateAdded > 0)