aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Rector <rmrector@gmail.com>2024-05-05 21:03:56 -0600
committerGitHub <noreply@github.com>2024-05-05 21:03:56 -0600
commit4313724b4bdff8fd83b47606692f0a641b177cd5 (patch)
tree2cfd67cd0650e26e37497d34981c41bbae00d2b8
parentd74b274138954c2d28f2e2a40aa298c1951ea261 (diff)
parent10d81c16124b1d9161424fa9a9cb2fc3c14deafa (diff)
downloadxbmc-4313724b4bdff8fd83b47606692f0a641b177cd5.tar.xz
Merge pull request #25095 from sundermann/filename-identifiers-fix
[Scraper] Set path when scraping filename identifiers
-rw-r--r--xbmc/video/jobs/VideoLibraryRefreshingJob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp b/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
index e936665108..958a6f970c 100644
--- a/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
+++ b/xbmc/video/jobs/VideoLibraryRefreshingJob.cpp
@@ -182,6 +182,8 @@ bool CVideoLibraryRefreshingJob::Work(CVideoDatabase &db)
{
CFileItemList items;
items.Add(m_item);
+ items.SetPath(m_item->m_bIsFolder ? URIUtils::GetParentPath(m_item->GetPath())
+ : URIUtils::GetDirectory(m_item->GetPath()));
VIDEO::CVideoInfoScanner scanner;
if (scanner.RetrieveVideoInfo(items, scanSettings.parent_name, scraper->Content(),
!ignoreNfo, nullptr, m_refreshAll, GetProgressDialog()))