Skip to content

Commit

Permalink
修复BV计算问题 fix #762
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Nov 8, 2023
1 parent bf3f08f commit 6dcd59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BBDown.Core/Util/BilibiliBvConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static string Encode(long avid)
var bvid = new byte[BV_LEN];
long tmp = (MAX_AID | avid) ^ XOR_CODE;

for (byte i = BV_LEN - 1; i >= 0; i--)
for (byte i = BV_LEN - 1; tmp != 0; i--)
{
bvid[i] = ALPHABET[tmp % BASE];
tmp /= BASE;
Expand Down

0 comments on commit 6dcd59c

Please sign in to comment.