当我尝试使用 Files.PrepareDownload 获取 fanart url 时,它响应错误。
首先,我使用 VideoLibrary.GetMovies 获取电影:
http://<ip>/jsonrpc?request={"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "title"}, "properties": ["title", "art", "file"]}, "method": "VideoLibrary.GetMovies", "id": "libMovies"}
VideoLibrary.GetMovies 响应:
{"id":"libMovies","jsonrpc":"2.0","result":{"limits":{"end":1,"start":0,"total":1},"movies":[{"art":{"fanart":"image://http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2f3Kgu3ys6W6UZWWFty7rlTWgST63.jpg/","poster":"image://http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2fg23cs30dCMiG4ldaoVNP1ucjs6.jpg/"},"file":"D:\\Movie\\Film\\Fantastic.Four.2015.720p.BluRay.x264-GECKOS\\Fantastic.Four.2015.720p.BluRay.x264-GECKOS.mkv","label":"Fantastic Four","movieid":1,"title":"Fantastic Four"}]}}{"jsonrpc":"2.0","method":"GUI.OnScreensaverActivated","params":{"data":null,"sender":"xbmc"}}
然后我尝试使用 Files.PrepareDownload: Request:
http://<ip>/jsonrpc?request={"jsonrpc": "2.0", "params": {"path": "image://http%3a%2f%2fimage.tmdb.org%2ft%2fp%2foriginal%2f3Kgu3ys6W6UZWWFty7rlTWgST63.jpg/"}, "method": "Files.PrepareDownload", "id": "preparedl"}
Files.PrepareDownload 响应:
{"error":{"code":-32602,"data":{"details":null},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
谁能帮我?