diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-18 00:00:24 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-18 00:00:24 -0800 |
| commit | b3665cc09ea0363beafc05a867c057e5c122985a (patch) | |
| tree | 162299bf2515205c83202083016ec2337271dd26 /downloader.lua | |
| parent | b3ec50d92451b99dd08b6030b08854c8cc77524b (diff) | |
| download | mpv-iptv-menu-b3665cc09ea0363beafc05a867c057e5c122985a.tar.gz mpv-iptv-menu-b3665cc09ea0363beafc05a867c057e5c122985a.tar.xz | |
support timed status/error messages
To support this, render() has been pulled out of redraw(), allowing
updating the actual OSD without having to pass in the 'state' object,
avoiding complexity and unnecessary computation.
Diffstat (limited to 'downloader.lua')
| -rw-r--r-- | downloader.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/downloader.lua b/downloader.lua index 7881129..c96ba7b 100644 --- a/downloader.lua +++ b/downloader.lua @@ -46,8 +46,8 @@ function mt:exec(url, file, cb) self.running = false self:exec_next() - if success and cb then - cb(url, file) + if cb then + cb(success, url, file) end end) end |
