Skip to content

This script removes and re-adds all torrents that have the 'No data found!' error message.

Notifications You must be signed in to change notification settings

chmistry/transmission_redownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

transmission_redownload

This script removes and re-adds all torrents that have the Error: No data found! Ensure your drives are connected or use "Move Data File To...". To re-download, remove the torrent and re-add it. error message.

Warning: All torrents will be deleted and re-downloaded! This means losing all original info regarding adding, seeding, ratio, etc. If you know your data is still there look for other solutions! See for example: This transmissionbt forum topic

It can be useful to re-add torrents if one has lost the original data, but Transmission still has reference to the original torrents. Also the original file location will be restored if it does not exist anymore.

Works with:

  • transmission-remote 2.82 (14160)
  • GNU bash, version 4.3.11(1)-release-(x86_64-pc-linux-gnu)
  • Ubuntu 14.04
  • Linux server 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

How to run: Transmission stores all current torrents in '/etc/transmission-debian/torrents'. Copy all torrent files to a temp dir and change ownership (chown) to the user who is going to run this script. After successful running this script the tempdir with torrents can be deleted.

Transmission must be remotely accessible, this can be changed in the config file. A username and password are required.

Change below parameters to your setup:

tempdir="/home/user/temptor"  # temporary dir where torrents are stored
server="server"               # ip address where transmission is running
port="port"                   # port transmission listens to for remote access
username="username"           # username
password="password"           # password
maxid=800                     # The maximum ID can be obtained by running in shell (it will be last number):

transmission-remote server:host -n username:password -l | sed 's/\([0-9]*\).*/\1/'

Config the script as described above and run it in a terminal:

./transmission_redownload.sh

About

This script removes and re-adds all torrents that have the 'No data found!' error message.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages