* opt: dataStatus

* tweaks

* opt: ui

* update

Signed-off-by: dom <githubaccount56556@proton.me>

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-02-06 14:25:45 +08:00
committed by GitHub
parent 32386bf146
commit 7ab2cf973f
12 changed files with 85 additions and 73 deletions

View File

@@ -48,12 +48,11 @@ abstract final class IdUtils {
/// bv转av
static int bv2av(String bvid) {
final bvidArr = List.of(bvid.codeUnits);
final bvidArr = bvid.codeUnits.sublist(3);
swap(bvidArr, 3, 9);
swap(bvidArr, 4, 7);
swap(bvidArr, 0, 6);
swap(bvidArr, 1, 4);
bvidArr.removeRange(0, 3);
final tmp = bvidArr.fold(0, (pre, char) => pre * BASE + invData[char]!);
return (tmp & MASK_CODE) ^ XOR_CODE;
}