aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Rector <rmrector@gmail.com>2023-08-19 16:00:43 -0600
committerRyan Rector <rmrector@gmail.com>2023-09-13 16:59:02 -0600
commite6ba91067dde60d5564fbd5cecd29841e958e2c7 (patch)
tree92709a1d6bd31f8c50e07f79f1848fb7f3f1d143
parent1bebf11c701e5fb39002f8daf364c9a454b6735d (diff)
just set chapter thumb path in chapter dialog
-rw-r--r--xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp b/xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
index c4428817ae..86f545fa12 100644
--- a/xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
+++ b/xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
@@ -285,18 +285,11 @@ void CGUIDialogVideoBookmarks::OnRefreshList()
CFileItemPtr item(new CFileItem(chapterName));
item->SetLabel2(time);
- std::string chapterPath = StringUtils::Format("chapter://{}/{}", m_filePath, i);
- std::string cachefile = CServiceBroker::GetTextureCache()->GetCachedPath(
- CServiceBroker::GetTextureCache()->GetCacheFile(chapterPath) + ".jpg");
- if (CFileUtils::Exists(cachefile))
- item->SetArt("thumb", cachefile);
- else if (i > m_jobsStarted && CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(CSettings::SETTING_MYVIDEOS_EXTRACTCHAPTERTHUMBS))
+ if (CServiceBroker::GetSettingsComponent()->GetSettings()->GetBool(
+ CSettings::SETTING_MYVIDEOS_EXTRACTCHAPTERTHUMBS))
{
- CFileItem item(m_filePath, false);
- CJob* job = new CChapterThumbExtractor(item, m_filePath, chapterPath, pos * 1000);
- AddJob(job);
- m_mapJobsChapter[job] = i;
- m_jobsStarted++;
+ std::string chapterPath = StringUtils::Format("chapter://{}/{}", m_filePath, i);
+ item->SetArt("thumb", chapterPath);
}
item->SetProperty("chapter", i);