diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-18 00:15:19 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-01-18 00:15:19 -0800 |
| commit | 7ffcfb63e9df580e3d6b713402fc6e827e82d697 (patch) | |
| tree | b5964225830374e25506b79bad5353ad123958f4 /cacher.lua | |
| parent | b3665cc09ea0363beafc05a867c057e5c122985a (diff) | |
| download | mpv-iptv-menu-7ffcfb63e9df580e3d6b713402fc6e827e82d697.tar.gz mpv-iptv-menu-7ffcfb63e9df580e3d6b713402fc6e827e82d697.tar.xz | |
allow reloading data while running
Diffstat (limited to 'cacher.lua')
| -rw-r--r-- | cacher.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,7 +12,8 @@ local function exec(obj, opts, call_opts, func, func_name, ...) local path = mp_utils.join_path(opts.directory, fn) local f = mp_utils.file_info(path) local data - local miss = not f or os.time() - f.mtime > opts.time + local miss = call_opts.force or not f or + os.time() - f.mtime > opts.time if miss then if call_opts.before_miss then |
