Skip to main content

torrent-dl

Popcorn Time was/is a really cool solution to play torrents directly while its being downloaded in the background, if you can get one of the installers to work. I really love Peerflix, it just works.

This is a port of my beloved peerflix to python. I really need to get it to packaging it, so that I can just apt-get it :)

You can simultaneously watch and download a torrent at the same time. It also supports random and incremental seek functionality of the media player.

All you have to do is torrent-dl [magnet link]

It will automatically start playing once it has downloaded a certain portion of the file depending on your internet speed.

Built on [pyflix](https://github.com/animeshkundu/pyflix). Contains both the torrent library and the media streamer. Feel free to build awesome stuff on top of it.

Installation on Ubuntu

sudo apt-get install libtorrent-rasterbar8 python-libtorrent

pip install -r requirements.txt

Installation on Mac OS

brew update

brew install caskroom/cask/brew-cask

brew install boost –build-from-source –with-python –universal

brew install libtorrent-rasterbar –enable-python-binding –with-python –with-boost-python=mt

sudo ln -s /usr/local/lib/python2.7/site-packages/libtorrent.so /Library/Python/2.7/site-packages/.

sudo ln -s /usr/local/lib/python2.7/site-packages/python_libtorrent-1.0.3-py2.7.egg-info /Library/Python/2.7/site-packages/.

pip install -r requirements.txt

Usage

pyflix [-h] [–serve] [–port PORT] [–download DOWNLOAD] [–verbose] [–player PLAYER] magnet

positional arguments:

magnet The magnet link to download

optional arguments:

-h, --help

show this help message and exit

—serve Do not run VLC

--port PORT, -p PORT

The port where the stream will be served

—download DOWNLOAD, -d DOWNLOAD The path where the torrent will be downloaded

--verbose

Show _all_ the logs

—player PLAYER Only _vlc_ for now

Metadata

Release files for torrent-dl 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torrent-dl 0.0.1
File Size Uploaded
torrent-dl-0.0.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for torrent-dl 0.0.1
File Interpreter ABI Platform
torrent_dl-0.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 25.2 kB

Release files / torrent-dl-0.0.1.tar.gz

Download URL torrent-dl-0.0.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d2962555710df5ee6446910d17cb86bbaa497e026043d3f2e1a4ef094f2642a8
BLAKE2b-256 checksum
How to use checksums
e1db5708edc68b7619a2986e0b7fe1b52435921cf00381d21eb320b7d2d488c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / torrent_dl-0.0.1-py2-none-any.whl

Download URL torrent_dl-0.0.1-py2-none-any.whl
Size 14.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
2ffc6ad590fb30d3bad2ce3be1a3f3e99f0839793becff6de7e9928aef6072d4
BLAKE2b-256 checksum
How to use checksums
6f3460ed357b80a01c9b0e49d349eab27233ae45a908bfc70af78ee057cfadbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page