Giter VIP home page Giter VIP logo

btfs's Introduction

What the?

It's bittorent file system. It allows you to watch video or pictures, listen to music and so on directly from torrent network. The file you request is put on top of download queue so you shouldn't mess with priorities and such. Just mount this nifty filesystem wherever you like and use any player to get the content. It may get a while to fill the player's cache so be patient. If your connection is fast enough you'll expirience a smooth playback.

Requirements

Python 2.x (I personally use 2.6.7), python-libtorrent from rasterbar ( http://www.rasterbar.com/products/libtorrent/python_binding.html ), python-fuse. Your repo should contain all this and other packages which depend on these.

A man page?

There's no man page yet. I don't know whether it will be at all. For now you can use the following switches:

-f torrent — path to the torrent file (this or -m is required)
-m magnet-uri — magnet link of the torrent (this or -f is required)
-s save/to/dir — path to download dir (required)
-p port — tcp (for torrent) and udp (for DHT) port to listen to
-r path/to/resume.dat — use the resume file for faster incomplete download resuming
-d 0/1 — default chunk priority. 0 means nothing would be downloaded except files you try to read,
1 (default) means the download would be like normal but requested files will have the highest priority.
--piece-par N — download N pieces in parallel
--log — enable logging (provide a python logging configuration on /etc/btfs/logging.conf )
--log-conf path/to/conf — use another logging configuration file

And after all switches put the path to the mount point. For example:

./btfs.py -f ~/mytorrent.torrent -s ~/downloads ~/btfs
./btfs.py -m "magnet:?xt=urn:btih:c1742f05c068350bf2831e653656015199e12803" -s ~/downloads ~/btfs

Then just go to ~/btfs and look for files. The topmost directory will have the torrent name (I believe some day I'll add multiple torrents support so it's a good reason to separate them in advance). You can unmount it just like any other FUSE filesystem using fusermount -u ~/btfs.

Bugs?

Yeah, there may be some. I didn't make this program from scratch. Instead, I got bittorrent2player ( http://www.beroal.in.ua/prg/bittorrent2player/ ) and modified it a lot. So if there were bugs they are now here. And some authentic ones were introduced by me. Enjoy!

P.S. if you can't enjoy bugs for some reason feel free to file a ticket using github issue tracker. I'll try to fight them.

btfs's People

Contributors

rkfg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.