Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backend: local ? #2

Closed
saveyour opened this issue Apr 24, 2015 · 2 comments
Closed

backend: local ? #2

saveyour opened this issue Apr 24, 2015 · 2 comments

Comments

@saveyour
Copy link

first, cool project.

second, i dont know node otherwise i'd be doing this myself (tried to, actually) but is there a way to just have local storage without a backend? i used the _template.js example to create a local.js that just does nada but for some reason it hangs after i try to load a torrent

not sure if thats a bug in something else, as even without my changes i couldn't get torrent-cloud to load a torrent and download successfully using the mega backend..

i guess it could be a port-forwarding issue as i'm using it inside of a lxc container on an ubuntu 14.04 vps

(a local or ftp backend would be tits)

@jpillora
Copy link
Owner

Thanks, it's on the todo, just need to find time. As mentioned though in the README, I want to rewrite this is Go for portability and deployability so if I do get time (big work project atm) I'll most likely spend it on the Go version. Should be easier second time around, especially since I'll reuse the frontend.

exports.upload = function(torrentFile, callback) {
  var file = fs.createWriteStream("/my/path/" + torrentFile.path);
  var download = torrent.createStream();
  download.pipe(file);
  download.once('error', callback);
  download.once('close', callback);
};

Something like that should work. Currently, I'm using utorrent server for linux for locally stored torrents. Mainly wrote this for so I could download files directly to S3.

@jpillora
Copy link
Owner

Closing this, version 2 writes downloads to disk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants