diff options
author | ksooo <3226626+ksooo@users.noreply.github.com> | 2023-09-15 08:38:19 +0200 |
---|---|---|
committer | ksooo <3226626+ksooo@users.noreply.github.com> | 2023-09-16 12:19:01 +0200 |
commit | 85381a90145cad627e3a0254690ed35c8fa77d57 (patch) | |
tree | c88b25f5a15acb0ad41e98184952426ff1053398 | |
parent | a8bc2dccde850262f6aff3411430d9d11afcc313 (diff) |
[video] CVideoTagExtractionHelper::ExtractEmbeddedArtFor: Use item's dyn path, so the code even works if item has no videotag (should not happen, but just in case for the future).
-rw-r--r-- | xbmc/video/tags/VideoTagExtractionHelper.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xbmc/video/tags/VideoTagExtractionHelper.cpp b/xbmc/video/tags/VideoTagExtractionHelper.cpp index fbab01c805..b331305fc4 100644 --- a/xbmc/video/tags/VideoTagExtractionHelper.cpp +++ b/xbmc/video/tags/VideoTagExtractionHelper.cpp @@ -35,10 +35,7 @@ std::string CVideoTagExtractionHelper::ExtractEmbeddedArtFor(const CFileItem& it for (const auto& it : tag.m_coverArt) { if (it.m_type == artType) - { - return CTextureUtils::GetWrappedImageURL(item.GetVideoInfoTag()->m_strFileNameAndPath, - "video_" + artType); - } + return CTextureUtils::GetWrappedImageURL(item.GetDynPath(), "video_" + artType); } return {}; } |