diff options
-rw-r--r-- | xbmc/video/VideoInfoScanner.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp index 835d9e8618..8f6b18849d 100644 --- a/xbmc/video/VideoInfoScanner.cpp +++ b/xbmc/video/VideoInfoScanner.cpp @@ -501,11 +501,16 @@ namespace VIDEO auto eventLog = CServiceBroker::GetEventLog(); if (eventLog) + { + const std::string itemlogpath = (info2->Content() == CONTENT_TVSHOWS) + ? CURL::GetRedacted(pItem->GetPath()) + : URIUtils::GetFileName(pItem->GetPath()); + eventLog->Add(EventPtr(new CMediaLibraryEvent( mediaType, pItem->GetPath(), 24145, - StringUtils::Format(g_localizeStrings.Get(24147), mediaType, - URIUtils::GetFileName(pItem->GetPath())), - pItem->GetArt("thumb"), CURL::GetRedacted(pItem->GetPath()), EventLevel::Warning))); + StringUtils::Format(g_localizeStrings.Get(24147), mediaType, itemlogpath), + EventLevel::Warning))); + } } pURL = NULL; |