Download XSP file?
#1
Hej,

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
}
which returns
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
}
which returns
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
I get
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!!
Reply

Logout Mark Read Team Forum Stats Members Help
Download XSP file?0