getTorrents
suspend fun getTorrents(filter: TorrentFilter = TorrentFilter.ALL, category: String? = null, sort: String = "", reverse: Boolean = false, limit: Int = 0, offset: Int = 0, tag: String? = null, hashes: List<String> = emptyList()): List<Torrent>
Parameters
filter
Filter torrent list by state, see TorrentFilter. Default: TorrentFilter.ALL
category
Get torrents with the given category name, null
for 'any category', or ""
for 'no category'. Default: null
tag
Get torrents with the given tag, null
for 'any tag', or ""
for 'no tag'. Default: null
sort
Sort torrents by given key, for example: Torrent::lastActivity.serialName
reverse
Enable reverse sorting. Defaults: false
limit
Limit the number of torrents returned.
offset
Set offset (if less than 0, offset from end).
hashes
Filter by torrent hashes.