Adding torrents using Remote Torrent Adder
ThisIn guidethis isguide, we'll be setting up extensions that send torrent files from your browser to your remote client for advanceddownloading userstorrents onlywithout andlogging isinto notyour officiallytorrent supportedclient's byweb USB,interface.as it is frequently updated voluntarily by our staff and it may be broken in some slots. Only proceed if you know what you're doing. If there are any questions onInstalling the
installation or the execution of the scripts, you may ask on the USB Community server.
As many of you know, Deluge is fast and more aggressive to upload but it starts to become a real nuisance once you load more than 500 torrents. rTorrent, on the other hand, is good at handling large amount of seeding torrents, making it ideal for long term seeding.
This guide will help you automate the process of moving your torrents from Deluge to rTorrent for long-term seeding.
PreparationExtension
By default, Deluge downloads to~/Downloadsand rTorrent downloads to~/files.Please ensure thatboth Deluge and rTorrent download toInstall thesameextensiondirectory.from
Deluge requires an absolute path to your Download to: directory, so you'll have to enter something like /home13/username/Downloads, not ~/Downloads. rTorrent, on the other hand, will accept shortcuts such as ~/Downloads.
Install Dependencies
links
Python 3
wget https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/Language%20Installers/python-pip-install.sh
chmod +x python-pip-install.sh
bash python-pip-install.sh
perl
screen -m bash -c "curl -L http://xrl.us/installperlnix | bash"
After that run the following commands
exec $SHELL
python -m pip install requests service_identity cryptography perl
perl -MCPAN -e 'install Convert::Bencode'
The installer is interactive so respond to the prompts as follows
Would you like to configure as much as possible automatically? [yes] yes
What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')[local::lib]
Would you like me to append that to /homexx/username/.bashrc now? [yes] yes
After the installation, loadÂ.bashrcby doing the following command
exec $SHELL
Download Scripts
For this guide, we will install it in~/scriptsYou may choose another folder accordingly.
RunFirefox:theTorrentfollowing:
mkdir -p $HOME/scripts && cd $HOME/scripts
wget https://raw.githubusercontent.com/lethanhviet/autoExport/master/rtorrent_fast_resume.pl
wget https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/deluge-rtorrent/autoExport.py
Configuration
EditautoExport.pyin your favorite editor. We'll usenano.The following are optional fields and can be leave as blankFill outdiscord_urlif you want Discord notificationsEnableis_interactiveif you want to run the script manually and see the output in your terminal.Control
Setting Up
Remote Torrent Adder
- Once installed, right click the extension and click Options.
- Then, a new tab appears with the Remote Torrent Adder setup page. Click Add server to add one. The following connection details are shown below:
ruTorrent
nanoServer autoExport.pyname: {any name}
Server type: ruTorrent WebUI
Find this section of the script and edit accordingly
#######################################################Host: #{username}.{servername}.usbx.me
CustomizePort: #######################################################443
is_interactiveSSL: =Checked
FalseUsername: #{username}
SetPassword: thisPassword: toAs True to allow direct output or set to False for cron
discord_url = "" # Discord Webhook URL
minseedtime = 24 # Minimum seeding time (in hours)
src = home_dir + "/scripts/" # Where is rtorrent_fast_resume.pl kept?
state_folder = home_dir + "/.config/deluge/state/" # Link to deluge's state folder
watch_folder = home_dir + "/watch/" # Link to rTorrent's watch folder
deluge_port = 12345 # Deluge Port. Found under "Remote client access" sectionconfigured in UCP deluge_userunder =ruTorrent
"username"Relative #Path: /rutorrent
This will throw a Server responded with an irregular HTTP code
when adding a torrent. You can safely ignore this error.
Deluge
Server name: {any name}
Server type: Deluge Username.WebUI
Found
Host: client{username}.{servername}.usbx.me
access"Port: section443
SSL: Checked
Username: {username}
Password: Password: As configured in UCP deluge_pass = "p@55w0rd" #under Deluge
Password.Relative FoundPath: under/deluge
"Remote
Transmission
Server name: {any name}
Server type: Transmission WebUI
Host: {username}.{servername}.usbx.me/transmission/rpc
Port: 443
SSL: Checked
Username: {username}
Password: Password: As configured in UCP
under It is critical you ensure your folder paths are properly quoted
For example: watch_folder = "/homeXX/user/watch/"
autoExport.shis the script you'll actually run. TheautoExport.shscript essentially just runs theautoExport.pyscript, but specifically using the custom version of Python included with Deluge.Save the script onscriptsfolder
wget https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/deluge-rtorrent/autoExport.sh
chmod +x autoExport.sh
Testing
You can now choose to test out your script by running it manually
$HOME/scripts/autoExport.shTransmission
Be sure to set is_interactive = True in order to see the output in your terminal window
Torrent Setting Up Scheduling with cron
Control
- To set
upTorrentaControlcronup,jobclick the plugin icon. This will take you to its configuration page.
crontab -e
AddTo add a new server, go to Server Configuration- On the
followingCurrententryservertodropdown,runselecttheNewscript every 6 hoursAssuming you want to execute the script every 6 hoursServer
ruTorrent
0Server *name: {any name}
Bittorrent Client: ruTorrent
Server address: https:/6/{username}.{servername}.usbx.me/rutorrent
*Username: *{username}
*Password: ~/scripts/autoExport.shAs configured in UCP under ruTorrent
Click Save after configuring
Deluge
Server name: {any name}
Bittorrent Client: Deluge
Server address: https://{username}.{servername}.usbx.me/deluge
Password: As configured in UCP under Deluge
Click Save after configuring
For
Transmission
Server onname: crontab{any schedules,name}
visitBittorrent crontab.guruClient: Transmission
Server address: https://{username}.{servername}.usbx.me/transmission/rpc
Username: {username}
Password: As configured in UCP under Transmission
Click Save after configuring