fix: use args instead of self for fetchers

This commit is contained in:
sxyazi
2024-11-16 13:46:45 +08:00
parent 235437cf36
commit 4a6edc3349
3 changed files with 19 additions and 10 deletions

View File

@@ -35,9 +35,12 @@ local function setup(st, opts)
end, 500)
end
local function fetch(self)
local function fetch(self, args)
-- TODO: remove this once Yazi 0.4 is released
args = args or self
local paths = {}
for _, file in ipairs(self.files) do
for _, file in ipairs(args.files) do
paths[#paths + 1] = tostring(file.url)
end