@stremio/stremio-video 0.0.79 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -257,8 +257,9 @@ function ShellVideo(options) {
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
ipc.on('mpv-event-ended', function(args) {
|
|
260
|
+
// older shells report 'other' for every non-error reason, including eof
|
|
260
261
|
if (args.error) onError(args.error);
|
|
261
|
-
else onEnded();
|
|
262
|
+
else if (!args.reason || args.reason === 'eof' || args.reason === 'other') onEnded();
|
|
262
263
|
});
|
|
263
264
|
|
|
264
265
|
function getProp(propName) {
|