(2013-10-04, 10:13)Montellese Wrote: You have to pass in the whole art object but completely leave out whatever you don't want anymore. That will re-write all the art items of that movie and should drop any that aren't specified.
Hmmm... that doesn't seem to be the case.
If I start with:
Code:
[
{
"movieid": 312,
"title": "Zombieland",
"art": {
"fanart": "image://nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-fanart.jpg/",
"poster": "image://nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-poster.jpg/",
"clearart": "image://http://assets.fanart.tv/fanart/movies/19908/movieart/zombieland-4fd8c70fd673c.png/",
"clearlogo": "image://http://assets.fanart.tv/fanart/movies/19908/hdmovielogo/zombieland-5145e97ed73a4.png/"
},
"file": "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip].mkv",
"label": "Zombieland"
}
then call "VideoLibrary.SetMovieDetails" with the following request:
Code:
{
"jsonrpc": "2.0",
"params": {
"art": {
"clearart": "http://test1.png",
"clearlogo": "http://test2.png"
},
"movieid": 312
},
"method": "VideoLibrary.SetMovieDetails"
}
I then have in the media library:
Code:
[
{
"movieid": 312,
"title": "Zombieland",
"art": {
"fanart": "image://nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-fanart.jpg/",
"poster": "image://nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip]-poster.jpg/",
"clearart": "image://http://test2.png/",
"clearlogo": "image://http://test1.png/"
},
"file": "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip].mkv",
"label": "Zombieland"
}
]
and NOT the following (which is what you are saying should happen, and what I was expecting):
Code:
[
{
"movieid": 312,
"title": "Zombieland",
"art": {
"clearart": "image://http://test2.png/",
"clearlogo": "image://http://test1.png/"
},
"file": "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Zombieland (2009)[BDRip].mkv",
"label": "Zombieland"
}
]
I'm using MySQL if that makes a difference.
What would be nice is how it appears to be working now, but items set to null/None would be dropped, so I could drop
just the clearlogo artwork item by specifying it's value as null/None, and without having to specify (or know) about the other artwork items, which would all be retained.
However if it can be made to work the way you say it should be working, then I can probably work something out on my end... like reading all the details first etc. (eugh!)