diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-02-02 16:54:02 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2026-02-02 16:54:25 -0800 |
| commit | 6cc548c27470b81114412f3ecd74380894eba72e (patch) | |
| tree | 8f3417505cecc289da37e49b5bfc0eca92e20222 /main.lua | |
| parent | 61dba9967975d4a48d33776449c627c11f9bd365 (diff) | |
| download | mpv-iptv-menu-6cc548c27470b81114412f3ecd74380894eba72e.tar.gz mpv-iptv-menu-6cc548c27470b81114412f3ecd74380894eba72e.tar.xz | |
support specifying credentials via config file
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,9 +19,9 @@ local state = _state.new() local downloader = _downloader.new({limit = 5}) local xc = _xc.new({ - server = mp.get_opt('iptv_menu.xc_server'), - user = mp.get_opt('iptv_menu.xc_user'), - pass = mp.get_opt('iptv_menu.xc_pass'), + server = config.xc_server, + user = config.xc_user, + pass = config.xc_pass, }) xc = cacher.wrap(xc, { directory = config.cache_dir, |
