Skip to content

Commit 8da07e3

Browse files
committed
fix: duplicate danmaku filename when fallback
1 parent 7ed245a commit 8da07e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,9 @@ function get_danmaku_fallback(query)
491491

492492
local url = options.fallback_server .. "/?url=" .. query
493493
msg.verbose("尝试获取弹幕:" .. url)
494-
local temp_file = "danmaku-" .. pid .. ".xml"
494+
local temp_file = "danmaku-" .. pid .. danmaku.count .. ".xml"
495495
local danmaku_xml = utils.join_path(danmaku_path, temp_file)
496+
danmaku.count = danmaku.count + 1
496497
local arg = {
497498
"curl",
498499
"-L",

0 commit comments

Comments
 (0)