mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix: re-init mpv after crash
This commit is contained in:
1 parent
699427ea0a
commit
19cc921033
1 file changed
+3
-2
+3
-2
@@ -38,9 +38,10 @@ const fs = require('fs');
|
||||
const https = require('https');
|
||||
|
||||
const mpvAPI = require('node-mpv');
|
||||
const createMpvInstance = () => new mpvAPI({}, ['--autofit=70%']);
|
||||
const createMpvInstance = () =>
|
||||
new mpvAPI({ debug: true, verbose: true }, ['--autofit=70%']);
|
||||
let mpv = createMpvInstance();
|
||||
mpv.on('quit', () => (mpv = null));
|
||||
mpv.on('quit', () => (mpv = null)).on('crash', () => (mpv = null));
|
||||
|
||||
/** @deprecated - used only for migration */
|
||||
const Nedb = require('nedb-promises');
|
||||
|
||||
Reference in new issue
Block a user