Bug Files.GetDirectory returns undefined type(s)
#1
It seems as Files.GetDirectory should return type "List.Item.File" which inherits a "type" from List.Item.Base which should be defined as:

Code:
"type": {
      "enums": [
        "unknown",
        "movie",
        "episode",
        "musicvideo",
        "song",
        "picture",
        "channel"
      ],
      "type": "string",
      "default": "unknown"
    }

but i can easily get enums that are not defined such as type "album" as below, as well as "artist", and "tvshow", perhaps others as well...
Code:
{
    "files": [
        {
            "file": "musicdb://albums/2/",
            "filetype": "directory",
            "id": 2,
            "label": "Fistful of Metal",
            "size": 0,
            "title": "Fistful of Metal",
            "type": "album",
        }
    ],
    "limits": {
        "end": 1,
        "start": 0,
        "total": 505
    }
}
Reply
#2
I've noticed this problem too. Not sure how to reproduce it though. Did you file this as a bug in trac already?
Reply
#3
nah.. the forum is as far as I'll take things
Reply

Logout Mark Read Team Forum Stats Members Help
Files.GetDirectory returns undefined type(s)0