6 TrackFile
Qstick edited this page 2019-08-03 13:21:28 -04:00

Endpoint: "/trackfile"

GET

Summary

Returns all track files for the given artist or album

Parameters

Required:

artistId (int)

Optional:

albumId (int)

trackFileIds - Usage trackFileIds=1234,1236,1235

Returns JsonArray
[
  {
    "artistId": 517,
    "albumId": 6462,
    "relativePath": "We Shall Overcome- The Seeger Sessions (2006)\\Bruce Springsteen - 01 - Old Dan Tucker.flac",
    "path": "C:\\Test2\\Bruce Springsteen\\We Shall Overcome- The Seeger Sessions (2006)\\Bruce Springsteen - 01 - Old Dan Tucker.flac",
    "size": 17755366,
    "dateAdded": "2018-04-15T02:47:26.391487Z",
    "quality": {
      "quality": {
        "id": 6,
        "name": "FLAC"
      },
      "revision": {
        "version": 1,
        "real": 0
      }
    },
    "mediaInfo": {
      "audioChannels": 2.0,
      "audioBitRate": "927 kbps",
      "audioCodec": "FLAC"
    },
    "qualityCutoffNotMet": false,
    "id": 5421
  },
  {
    "artistId": 517,
    "albumId": 6472,
    "relativePath": "High Hopes (2013)\\01 Bruce Springsteen - High Hopes [2014] - High Hopes.mp3",
    "path": "C:\\Test2\\Bruce Springsteen\\High Hopes (2013)\\01 Bruce Springsteen - High Hopes [2014] - High Hopes.mp3",
    "size": 10520492,
    "dateAdded": "2018-04-15T02:47:27.2630697Z",
    "quality": {
      "quality": {
        "id": 2,
        "name": "MP3-VBR-V0"
      },
      "revision": {
        "version": 1,
        "real": 0
      }
    },
    "mediaInfo": {
      "audioChannels": 2.0,
      "audioBitRate": "282 kbps",
      "audioCodec": "MP3"
    },
    "qualityCutoffNotMet": true,
    "id": 5422
  }
]

GET/{id}

Summary

Returns the track file with a given id

Parameters

Required:

id (int)

Returns JsonArray
{
  "artistId": 517,
  "albumId": 6472,
  "relativePath": "High Hopes (2013)\\01 Bruce Springsteen - High Hopes [2014] - High Hopes.mp3",
  "path": "C:\\Test2\\Bruce Springsteen\\High Hopes (2013)\\01 Bruce Springsteen - High Hopes [2014] - High Hopes.mp3",
  "size": 10520492,
  "dateAdded": "2018-04-15T02:47:27.2630697Z",
  "quality": {
    "quality": {
      "id": 2,
      "name": "MP3-VBR-V0"
    },
    "revision": {
      "version": 1,
      "real": 0
    }
  },
  "mediaInfo": {
    "audioChannels": 2.0,
    "audioBitRate": "282 kbps",
    "audioCodec": "MP3"
  },
  "qualityCutoffNotMet": true,
  "id": 5422
}

DELETE/{id}

Summary

Delete the given track file

Parameters

Required:

id (int)

Returns
{}