@stremio/stremio-video 0.0.71 → 0.0.72

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.71",
3
+ "version": "0.0.72",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -28,7 +28,9 @@ function createTorrent(streamingServerURL, infoHash, fileIdx, sources, seriesInf
28
28
 
29
29
  if (Array.isArray(sources) && sources.length > 0) {
30
30
  body.peerSearch = {
31
- sources: ['dht:' + infoHash].concat(sources).filter(function(source, index, sources) {
31
+ sources: ['dht:' + infoHash].concat(sources.map(function(source) {
32
+ return source.startsWith('tracker:') || source.startsWith('dht:') ? source : 'tracker:' + source;
33
+ })).filter(function(source, index, sources) {
32
34
  return sources.indexOf(source) === index;
33
35
  }),
34
36
  min: 40,