From d23e7809334b7bb3746c0532e1ef01dd32a16855 Mon Sep 17 00:00:00 2001 From: Mark Chan <45706356+WindowsMEMZ@users.noreply.github.com> Date: Sat, 9 Dec 2023 23:23:05 +0800 Subject: [PATCH] Update CodeExt.swift --- DarockBili Watch App/Extension/CodeExt.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DarockBili Watch App/Extension/CodeExt.swift b/DarockBili Watch App/Extension/CodeExt.swift index eca4100ba..b55ae9ce2 100644 --- a/DarockBili Watch App/Extension/CodeExt.swift +++ b/DarockBili Watch App/Extension/CodeExt.swift @@ -245,7 +245,7 @@ func bv2av(bvid: String) -> UInt64 { swap(&bvidArray[3], &bvidArray[9]) swap(&bvidArray[4], &bvidArray[7]) - let trimmedBvid = String(bvidArray[3...]) + let trimmedBvid = String(bvidArray).dropFirst(3) var tmp: UInt64 = 0