diff options
author | Stefano Gottardo <gottardo.stefano.83@gmail.com> | 2024-07-22 18:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 18:36:06 +0200 |
commit | bac5652f5f3a28392a1fd05416ce7029c6a2c6b9 (patch) | |
tree | 3e7a0e4a8828d88b06a5993fcda666e5d18629f8 | |
parent | 3178ecd804556f22e6a24387eef61afc06480cd3 (diff) | |
parent | 839581a701490d7a0679ff233536359508fd8297 (diff) |
Merge pull request #25477 from CastagnaIT/mimetype_looup_omega
[backport][FileItem] Fix mimetype content lookup regression
-rw-r--r-- | xbmc/FileItem.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp index 5623e9a7e1..3898d14e84 100644 --- a/xbmc/FileItem.cpp +++ b/xbmc/FileItem.cpp @@ -1801,7 +1801,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) @@ -1871,7 +1874,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) |