refa video params

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-04 16:40:20 +08:00
parent 26ccb92b44
commit cf84a92808
33 changed files with 341 additions and 374 deletions

View File

@@ -62,17 +62,9 @@ class VideoReplyController extends ReplyController<MainListReply>
return response.replies;
}
int get _epId {
return switch (videoCtr.epId) {
int e => e,
String e => int.parse(e),
_ => throw UnsupportedError(''),
};
}
@override
Future<LoadingState<MainListReply>> customGetData() => ReplyGrpc.mainList(
oid: isPugv ? _epId : aid,
oid: isPugv ? videoCtr.epId! : aid,
type: videoType.replyType,
mode: mode.value,
cursorNext: cursorNext,