aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe-black-eagle <g.moore@gmx.co.uk>2022-02-17 20:02:06 +0000
committerthe-black-eagle <g.moore@gmx.co.uk>2023-09-13 10:23:31 +0100
commit5422ac5f4217b9b3690396a8e2c31bb68d90078a (patch)
treebed61a32d90c3cbd4371bd7c0161f191f68fc55e
parent38128e22de2f59e0397428ea8540c4b1b39c3b23 (diff)
[JSON] Add new song video fields to json-rpc
-rw-r--r--xbmc/interfaces/json-rpc/AudioLibrary.cpp2
-rw-r--r--xbmc/interfaces/json-rpc/schema/methods.json3
-rw-r--r--xbmc/interfaces/json-rpc/schema/types.json13
-rw-r--r--xbmc/interfaces/json-rpc/schema/version.txt2
4 files changed, 13 insertions, 7 deletions
diff --git a/xbmc/interfaces/json-rpc/AudioLibrary.cpp b/xbmc/interfaces/json-rpc/AudioLibrary.cpp
index 3521a3a8ae..813c4c85c4 100644
--- a/xbmc/interfaces/json-rpc/AudioLibrary.cpp
+++ b/xbmc/interfaces/json-rpc/AudioLibrary.cpp
@@ -991,6 +991,8 @@ JSONRPC_STATUS CAudioLibrary::SetSongDetails(const std::string &method, ITranspo
song.strOrigReleaseDate = parameterObject["originaldate"].asString();
if (ParameterNotNull(parameterObject, "albumreleasedate"))
song.strReleaseDate = parameterObject["albumreleasedate"].asString();
+ if (ParameterNotNull(parameterObject, "songvideourl"))
+ song.songVideoURL = parameterObject["songvideourl"].asString();
// Update existing art. Any existing artwork that isn't specified in this request stays as is.
// If the value is null then the existing art with that type is removed.
diff --git a/xbmc/interfaces/json-rpc/schema/methods.json b/xbmc/interfaces/json-rpc/schema/methods.json
index 4d396cf6ba..c33e23ea31 100644
--- a/xbmc/interfaces/json-rpc/schema/methods.json
+++ b/xbmc/interfaces/json-rpc/schema/methods.json
@@ -1220,7 +1220,8 @@
{ "name": "disctitle", "$ref": "Optional.String" },
{ "name": "releasedate", "$ref": "Optional.String" },
{ "name": "originaldate", "$ref": "Optional.String" },
- { "name": "bpm", "$ref": "Optional.Integer" }
+ { "name": "bpm", "$ref": "Optional.Integer" },
+ { "name": "songvideourl", "$ref": "Optional.String" }
],
"returns": "string"
},
diff --git a/xbmc/interfaces/json-rpc/schema/types.json b/xbmc/interfaces/json-rpc/schema/types.json
index 86e8b22961..7310ddf55b 100644
--- a/xbmc/interfaces/json-rpc/schema/types.json
+++ b/xbmc/interfaces/json-rpc/schema/types.json
@@ -545,7 +545,8 @@
"votes", "userrating", "mood", "contributors",
"displaycomposer", "displayconductor", "displayorchestra", "displaylyricist",
"sortartist", "art", "sourceid", "disctitle", "releasedate", "originaldate",
- "bpm", "samplerate", "bitrate", "channels", "datemodified", "datenew" ]
+ "bpm", "samplerate", "bitrate", "channels", "datemodified", "datenew",
+ "songvideourl" ]
}
},
"Audio.Album.ReleaseType": {
@@ -692,7 +693,8 @@
"bpm": { "type": "Integer" },
"samplerate": { "type": "Integer" },
"bitrate": { "type": "Integer"},
- "channels": { "type": "Integer"}
+ "channels": { "type": "Integer"},
+ "songvideourl": { "type": "string" }
}
},
"Audio.Property.Name": {
@@ -1572,7 +1574,8 @@
"samplerate": { "type": "integer" },
"channels": { "type": "integer"},
"albumstatus": { "type": "string" },
- "customproperties": { "$ref": "Item.CustomProperties" }
+ "customproperties": { "$ref": "Item.CustomProperties" },
+ "songvideourl": { "type": "string" }
}
},
"List.Fields.All": {
@@ -1597,7 +1600,7 @@
"musicbrainzreleasegroupid", "mediapath", "dynpath", "isboxset", "totaldiscs",
"disctitle", "releasedate", "originaldate", "bpm", "bitrate", "samplerate",
"channels", "albumstatus", "datemodified", "datenew", "customproperties",
- "albumduration"]
+ "albumduration", "songvideourl"]
}
},
"List.Item.All": {
@@ -1631,7 +1634,7 @@
"specialsortseason", "specialsortepisode", "sortartist", "musicbrainzreleasegroupid",
"isboxset", "totaldiscs", "disctitle", "releasedate", "originaldate", "bpm",
"bitrate", "samplerate", "channels", "datemodified", "datenew", "customproperties",
- "albumduration", "userrating"]
+ "albumduration", "userrating", "songvideourl" ]
}
},
"List.Item.File": {
diff --git a/xbmc/interfaces/json-rpc/schema/version.txt b/xbmc/interfaces/json-rpc/schema/version.txt
index 3f74ab3e4c..998f113d61 100644
--- a/xbmc/interfaces/json-rpc/schema/version.txt
+++ b/xbmc/interfaces/json-rpc/schema/version.txt
@@ -1 +1 @@
-JSONRPC_VERSION 13.2.1
+JSONRPC_VERSION 13.3.0