mirror of
https://github.com/Lidarr/Lidarr.git
synced 2024-11-12 08:30:33 -08:00
Page:
TrackFile
Pages
API
Album Lookup
Album
AppData Directory
Artist Lookup
Artist
Autostart on Linux
Calendar
Command
Connections
Custom Post Processing Scripts
Disable Authentication
Diskspace
Docker
FAQ
Forgot my Password
Health Checks
History
Home
Images
Indexer Seed Ratio
Installation (FreeBSD FreeNAS)
Installation
Issue Labeling Scheme
Log Files
Metadata Source
Naming
Parse
Profile
Profiles
Queue
Release Branches
Release Push
Release
Rootfolder
Setup Development Environment
Supported DownloadClients
Supported ImportLists
Supported Indexers
Supported Notifications
System Backup
System Status
Tags
Track
TrackFile
Wanted Cutoff
Wanted Missing
Write Tags
6
TrackFile
Qstick edited this page 2019-08-03 13:21:28 -04:00
Table of Contents
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
{}