Skip to content
/ rfr Public
forked from brbaird/rfr

Generate fast resumable torrents for rtorrent, in Python.

License

Notifications You must be signed in to change notification settings

phdru/rfr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rtorrent fast resume

Python module that adds fast resume data to torrent files to be used by rtorrent.

Description

This adds fast resume data to torrent files, allowing rtorrent to skip hash checking when a torrent is added. Based on rtorrent_fast_resume and rfr.pl.

Installation

pip install rfr

Usage

Here's a quick example of how to use this:

import rfr

tor = rfr.FastTorrent('path_to_original.torrent', 'path_to_downloaded_files')

# Call tor.do_resume() when you're ready to generate the fast resume data
tor.do_resume()

# Before outputting the torrent, you can adjust some of the torrent's params
# using:
tor.set_tor_data_val('rtorrent', 'directory', value='whatever you want')

# After calling tor.do_resume(), you can either save the resulting torrent to a file
# or upload straight to rtorrent via xml rpc
tor.save_to_file(dest)
tor.add_to_rtorrent(rtorrent_xmlrpc_url)

About

Generate fast resumable torrents for rtorrent, in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.9%
  • Makefile 1.1%