@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stremio/stremio-video",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -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) {