Skip to content
/ Reflection Public

A bridge between qBittorrent and Transmission torrent clients

License

Notifications You must be signed in to change notification settings

h31/Reflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reflection

Reflection allows to use Transmission remote controls with qBittorrent. It acts as a bridge between Transmission RPC and qBittorrent WebUI API.

Currently Reflection is able to:

  • Show torrent list
  • Show torrent details (files, trackers, statistics)
  • Start, stop, delete torrents
  • Add new torrents from a file, a magnet link of an HTTP/HTTPS link
  • Choose which files should be downloaded
  • Change destination directory
  • Show actual free space
  • Show peer table

Installation

Linux

# replace amd64 with your architecture: amd64, i386, armv7, arm64
curl -L https://github.com/h31/Reflection/releases/download/v1.0-rc1/reflection_linux_amd64.gz | gunzip | sudo dd of=/usr/local/bin/reflection
sudo chmod +x /usr/local/bin/reflection
curl -L https://raw.githubusercontent.com/h31/Reflection/v1.0-rc1/reflection.service | sudo dd of=/etc/systemd/system/reflection.service
sudo systemctl start reflection.service
sudo systemctl enable reflection.service

MacOS

Untested

curl -L https://github.com/h31/Reflection/releases/download/v1.0-rc1/reflection_macos_amd64.gz | gunzip | sudo dd of=/usr/local/bin/reflection
sudo chmod +x /usr/local/bin/reflection

Windows

64 bit .zip

32 bit .zip

Compatibility

  • Reflection emulates the latest version of Transmission (2.94)
  • Requires at least qBittorrent 4.1.0.
  • Tested against Transmission Remote GUI, built-in Transmission Web UI, Torrnado client for Android, Transmission-Qt and Transmission Remote by Yury Polek. Please fill an issue if you experience an incompatibility with any client.

What features are not supported yet:

  • Setting torrent properties (download/upload speed, etc)
  • Showing and changing torrent client settings

qBittorrent and Transmission-specific options

Please note that both qBittorrent and Transmission have some unique features. For example, some torrent properties such as a private flag are not exposed by qBittorrent. In case Transmission clients request such information, Reflection responds with predefined template data. Template values are stored in transmission/templates.go.

To enable some qBittorrent-specific options, use a "Specify torrent location" command in your Transmission GUI and append a special flag to the path. You can also specify such paths when adding a new torrent. For example, if download directory is /home/user/, those paths can be used:

  • /home/user/+s to enable sequential download
  • /home/user/+f to download first and last pieces first
  • /home/user/+h to skip hash checking when adding torrent.

It is possible to combine several commands, i.e. /home/user/+sf. Use - sign instead of + to disable an option. If your want to disable command processing and treat a path just as a path, end it with /, i.e. /home/user/my+path+s/.

Reflection applies some optimizations to make things smoother:

  • Both qBittorent and Transmission have an ability to transmit not the whole torrents list but just the recently changed information. They do it in a slightly different way, but Reflection tries to compensate differences. Use -sync=false command line flag to disable this optimization and make Reflection request the whole torrents list each time.
  • Due to the way the qBittorrent's API was designed, some requests can be quite slow. Reflection caches those requests, so things work noticeably faster. Most of the time you won't notice an existence of the cache. By default, the cache timeout is set to 15 seconds. Use -cache-timeout seconds to tune the timeout. If set to 0, the cache is disabled.

Usage:

mkdir Reflection
cd Reflection/
export GOPATH=$(pwd)
go get github.com/h31/Reflection/reflection
./bin/reflection

Use a --help flag to show settings. Default qBittorrent address is http://localhost:8080/.

About

A bridge between qBittorrent and Transmission torrent clients

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages