upnpsoap: Add additonal bookmark support
Add support for upnp:playbackCount and upnp:lastPlaybackPosition tags. These are used by Kodi to keep track of bookmark information as well as determining whether to show the checkmark to indicate that the video has been played. Also add support for the UpdateObject command, which Kodi uses to update the playbackCount and lastPlaybackPosition information. This change requires a DB schema update, which should be done automatically on the first run. Inspired by SF user Karsten's patch #167.
This commit is contained in:
@@ -236,19 +236,27 @@ static const struct stateVar ConnectionManagerVars[] =
|
||||
|
||||
static const struct argument GetSearchCapabilitiesArgs[] =
|
||||
{
|
||||
{"SearchCaps", 2, 10},
|
||||
{"SearchCaps", 2, 11},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static const struct argument GetSortCapabilitiesArgs[] =
|
||||
{
|
||||
{"SortCaps", 2, 11},
|
||||
{"SortCaps", 2, 12},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static const struct argument GetSystemUpdateIDArgs[] =
|
||||
{
|
||||
{"Id", 2, 12},
|
||||
{"Id", 2, 13},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
static const struct argument UpdateObjectArgs[] =
|
||||
{
|
||||
{"ObjectID", 1, 1},
|
||||
{"CurrentTagValue", 1, 10},
|
||||
{"NewTagValue", 1, 10},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
@@ -289,10 +297,10 @@ static const struct action ContentDirectoryActions[] =
|
||||
{"GetSystemUpdateID", GetSystemUpdateIDArgs}, /* R */
|
||||
{"Browse", BrowseArgs}, /* R */
|
||||
{"Search", SearchArgs}, /* O */
|
||||
{"UpdateObject", UpdateObjectArgs}, /* O */
|
||||
#if 0 // Not implementing optional features yet...
|
||||
{"CreateObject", CreateObjectArgs}, /* O */
|
||||
{"DestroyObject", DestroyObjectArgs}, /* O */
|
||||
{"UpdateObject", UpdateObjectArgs}, /* O */
|
||||
{"ImportResource", ImportResourceArgs}, /* O */
|
||||
{"ExportResource", ExportResourceArgs}, /* O */
|
||||
{"StopTransferResource", StopTransferResourceArgs}, /* O */
|
||||
@@ -316,6 +324,7 @@ static const struct stateVar ContentDirectoryVars[] =
|
||||
{"A_ARG_TYPE_Index", 3, 0},
|
||||
{"A_ARG_TYPE_Count", 3, 0},
|
||||
{"A_ARG_TYPE_UpdateID", 3, 0},
|
||||
{"A_ARG_TYPE_TagValueList", 0, 0},
|
||||
{"SearchCapabilities", 0, 0},
|
||||
{"SortCapabilities", 0, 0},
|
||||
{"SystemUpdateID", 3|EVENTED, 0, 0, 255},
|
||||
|
||||
Reference in New Issue
Block a user