2016-07-16, 19:02
Hej,
I want to get the content type for smart playlist via JSONRPC.
So I use
which returns
Then I use PrepareDownloadwhich returns
But then I try to download the fileI get
Can anyone help?
I would really like to know the content type for the smart playlists and looking at the XSP files seems to be the only way!!
I want to get the content type for smart playlist via JSONRPC.
So I use
Code:
{
"method": "Files.GetDirectory",
"params": ["special://videoplaylists/", "video", ["title", "file", "mimetype", "thumbnail"],{"method": "label", "order": "ascending", "ignorearticle": true}],
"jsonrpc": "2.0",
"id": 1
}
Code:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"files": [
{
"file": "special://profile/playlists/video/Kinderfilme.xsp",
"filetype": "directory",
"label": "Kinderfilme",
"mimetype": "x-directory/normal",
"thumbnail": "",
"title": "",
"type": "unknown"
},
.....
}
Then I use PrepareDownload
Code:
{
"method": "Files.PrepareDownload",
"params": ["special://profile/playlists/video/Kinderfilme.xsp"],
"jsonrpc": "2.0",
"id": 1
}
Code:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"details": {
"path": "vfs/special%3a%2f%2fprofile%2fplaylists%2fvideo%2fKinderfilme.xsp"
},
"mode": "redirect",
"protocol": "http"
}
}
But then I try to download the file
Code:
http://192.168.2.2:8080/vfs/special%3a%2f%2fprofile%2fplaylists%2fvideo%2fKinderfilme.xsp
Code:
HTTP/1.1 401 Unauthorized
connection: close
content-length: 0
cache-control: private, max-age=0, no-cache
accept-ranges: none
date: Sat, 16 Jul 2016 17:00:24 GMT
Can anyone help?
I would really like to know the content type for the smart playlists and looking at the XSP files seems to be the only way!!