johang / btfs

A bittorrent filesystem based on FUSE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extending it to be a NAS downloader

razfag opened this issue · 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)

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

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 :)