Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,9 @@ class CDirectoryJob : public CJob | |
if (item->HasProperty("node.visible")) | ||
item->SetVisibleCondition(item->GetProperty("node.visible").asString(), m_parentID); | ||
|
||
getThumbLoader(item)->LoadItem(item.get()); | ||
const std::shared_ptr<CThumbLoader> thumbLoader(getThumbLoader(item)); | ||
if (thumbLoader) | ||
thumbLoader->LoadItem(item.get()); | ||
|
||
m_items.push_back(item); | ||
} | ||
|
@@ -104,6 +106,10 @@ class CDirectoryJob : public CJob | |
|
||
std::shared_ptr<CThumbLoader> getThumbLoader(CGUIStaticItemPtr &item) | ||
{ | ||
// Due to pvr addon api design flaw, pvr recording thumbnail extraction currently does not work reliably (as of Kodi Krypton). | ||
if (item->IsPVRRecording()) | ||
return std::shared_ptr<CThumbLoader>(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
FernetMenta
|
||
|
||
if (item->IsVideo()) | ||
{ | ||
initThumbLoader<CVideoThumbLoader>(InfoTagType::VIDEO); | ||
|
@FernetMenta what do you think about this as a fix for the problem discovered here xbmc#10333 (comment) ?
(sorry for the noise with the previous commits which were just "accidents")