custom audio order

Closes #1636

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-21 17:20:24 +08:00
parent a71a7b66f8
commit e8a32a6149
3 changed files with 45 additions and 11 deletions

View File

@@ -44,6 +44,7 @@ class AudioGrpc {
String? next,
int qn = 80,
int fnval = 4048,
ListOrder order = ListOrder.ORDER_NORMAL,
}) {
return GrpcReq.request(
GrpcUrl.audioPlayList,
@@ -63,7 +64,7 @@ class AudioGrpc {
voiceBalance: Int64(1),
),
extraId: extraId,
sortOpt: SortOption(order: ListOrder.ORDER_NORMAL),
sortOpt: SortOption(order: order),
pagination: Pagination(pageSize: 20, next: next),
),
PlaylistResp.fromBuffer,