fixed browser item
This commit is contained in:
parent
7900905922
commit
c9468e35f5
@ -1051,8 +1051,15 @@ void IntegrationPluginDenon::browserItem(BrowserItemResult *result)
|
|||||||
}
|
}
|
||||||
qDebug(dcDenon()) << "Browse item called" << result->itemId();
|
qDebug(dcDenon()) << "Browse item called" << result->itemId();
|
||||||
|
|
||||||
BrowserItem item(result->itemId());
|
result->item().setDisplayName("Test name");
|
||||||
return result->finish(Thing::ThingErrorNoError);
|
if (m_mediaObjects.contains(result->itemId())) {
|
||||||
|
qCDebug(dcDenon()) << "Media Object found" << m_mediaObjects.value(result->itemId()).name;
|
||||||
|
BrowserItem item(result->itemId(), m_mediaObjects.value(result->itemId()).name, false, true);
|
||||||
|
result->finish(item);
|
||||||
|
} else {
|
||||||
|
qCWarning(dcDenon()) << "Media Object not found for itemId" << result->itemId();
|
||||||
|
result->finish(Thing::ThingErrorItemNotFound, "Item not found");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntegrationPluginDenon::executeBrowserItem(BrowserActionInfo *info)
|
void IntegrationPluginDenon::executeBrowserItem(BrowserActionInfo *info)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user