feat: add qq music api search

This commit is contained in:
2024-09-25 23:04:49 +08:00
parent ecd50ffea6
commit 1c89d54636
9 files changed
+194 -4

No files matched your search

@@ -32,4 +32,5 @@ class ConfigManager : JsonFileHandler<Config>("config.json") {
val enableAntiRevoke get() = this.read<Config>().enableAntiRevoke
val llamaUrl get() = this.read<Config>().llamaUrl
val llamaModel get() = this.read<Config>().llamaModel
val qqMusicApiUrl get() = this.read<Config>().qqMusicApiUrl
}
@@ -40,3 +40,9 @@ fun Int.formatNumberEnglish(): String {
else -> this.toString()
}
}
fun Int.formatToMinutes(): String {
val minutes = this / 60
val remainingSeconds = this % 60
return "$minutes:${if (remainingSeconds < 10) "0" else ""}$remainingSeconds"
}