From cd0997fac09fdff35c75359aa30c3f5a69215c2a Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Thu, 11 Jul 2024 10:05:03 +0200 Subject: [FileItem] Fix mimetype content lookup --- xbmc/FileItem.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index 5065b51c46..2776627018 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -1587,7 +1587,10 @@ void CFileItem::UpdateInfo(const CFileItem &item, bool replaceLabels /*=true*/) if (!item.GetArt().empty()) SetArt(item.GetArt()); AppendProperties(item); - UpdateMimeType(); + + SetContentLookup(item.m_doContentLookup); + SetMimeType(item.m_mimetype); + UpdateMimeType(m_doContentLookup); } void CFileItem::MergeInfo(const CFileItem& item) @@ -1657,7 +1660,10 @@ void CFileItem::MergeInfo(const CFileItem& item) SetArt(item.GetArt()); } AppendProperties(item); - UpdateMimeType(); + + SetContentLookup(item.m_doContentLookup); + SetMimeType(item.m_mimetype); + UpdateMimeType(m_doContentLookup); } void CFileItem::SetFromVideoInfoTag(const CVideoInfoTag &video) -- cgit v1.2.3