aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Sundermann <stephansundermann@gmail.com>2024-04-30 00:30:08 +0200
committerStephan Sundermann <stephansundermann@gmail.com>2024-04-30 01:05:30 +0200
commit10d81c16124b1d9161424fa9a9cb2fc3c14deafa (patch)
treecb5de4a0d5512416fa5317cfee57c9411e163209
parentce7e6a36f1c6d197ddba6c886d71a6dd2485fe0a (diff)
downloadxbmc-10d81c16124b1d9161424fa9a9cb2fc3c14deafa.tar.xz
[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()))