aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastagnaIT <gottardo.stefano.83@gmail.com>2024-07-11 10:05:03 +0200
committerCastagnaIT <gottardo.stefano.83@gmail.com>2024-07-11 10:05:03 +0200
commitcd0997fac09fdff35c75359aa30c3f5a69215c2a (patch)
tree5f60ee61ea1aeccd85d25f76fdc46a4d33f3d07d
parentd7876de3e6d9045941cc12eb4150248e01c1ea64 (diff)
[FileItem] Fix mimetype content lookup
-rw-r--r--xbmc/FileItem.cpp10
1 files 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)