Skip to content

Commit

Permalink
Fix chunkpath for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pldubouilh committed Mar 7, 2018
1 parent b2a0d17 commit 93cde47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/wtManifest.js
Expand Up @@ -17,6 +17,7 @@ function wtManifest (fullManifestPath = '', makeFromFolder = '', delay, loop = f

// Torrent from local folder
if (this.isLocalStream) {
this.chunksLoc = ''
this.localPath = addTrailingSlash(makeFromFolder)
this.sm = makeFromFolder ? new StreamMaker(makeFromFolder, delay, loop) : null
} else {
Expand Down Expand Up @@ -97,7 +98,7 @@ wtManifest.prototype.makeManifest = async function (manifest) {
await self.makeAllMagnets(files)

// Pop manifest back, inject magnet links alongside TS files
self.manifest = split.map(l => l.includes('.ts') ? self.fileToMagnet[chunkName(l)] + l : l).join('\n')
self.manifest = split.map(l => l.includes('.ts') ? self.fileToMagnet[chunkName(l)] + this.chunksLoc + l : l).join('\n')
self.sequence = sequence
return self.manifest
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "live-torrent",
"version": "0.0.4",
"version": "0.0.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 93cde47

Please sign in to comment.