btfs icon indicating copy to clipboard operation
btfs copied to clipboard

Extending it to be a NAS downloader

Open razfag opened this issue 3 years ago • 2 comments

I'm wondering of you've got any insights implementing something like this:

  • service that runs on a NAS and watches a a bunch of folders using inotify for torrent files
  • once a new torrent file is found it mounts it using btfs
  • only download the main file, if it's a video just download the mp4 into the folder where the torrent file was, no folders, etc...
  • for torrent with multiple large files download it as is
  • if the file is not accessed behave like a regular bittorrent client
  • after download finishes it should return to being a regular file

I'm thinking of turning it into a library and then python library and build a somewhat general purpose bittorrent client around it (perhaps with django)

razfag avatar Sep 28 '21 16:09 razfag

I think this is possible to do, but currently btfs will start downloading all files once it's mounted.

johang avatar Sep 30 '21 15:09 johang

I'd have to look into the libtorrent docs on how to add that functionality then.

Perhaps a --no-folders option and a --min-filesize one. Too bad that there are no comments :)

razfag avatar Oct 01 '21 06:10 razfag