User Tools

Site Tools


config:transmission

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
config:transmission [2023/12/28 01:27] Wulf Rajekconfig:transmission [2024/07/09 15:11] (current) – [Re-add failed torrents] Wulf Rajek
Line 193: Line 193:
 Store all current torrents in csv file, then prompt for confirmation for each failed torrent to remove it with data and re-submit it to transmission. Store all current torrents in csv file, then prompt for confirmation for each failed torrent to remove it with data and re-submit it to transmission.
  
-<code python>+<code> 
 +pip install transmissionrpc 
 +</code> 
 + 
 +<code python transmission-readd-failed.py> 
 +#!/bin/python
 import transmissionrpc import transmissionrpc
 import csv import csv
  
 # Connect to Transmission server with authentication # Connect to Transmission server with authentication
-tc = transmissionrpc.Client('localhost', port=9091, user='USERNAME', password='PASSWORD')+tc = transmissionrpc.Client('192.168.1.2', port=9091, user='synbt', password='synbt')
  
 # Retrieve list of torrents with error messages # Retrieve list of torrents with error messages
Line 225: Line 230:
     writer.writeheader()     writer.writeheader()
     for torrent in torrents_with_errors:     for torrent in torrents_with_errors:
-        writer.writerow({'id: torrent.id, 'name': torrent.name, 'magnet': torrent.magnetLink, 'error': torrent.errorString})+        writer.writerow({'id': torrent.id, 'name': torrent.name, 'magnet': torrent.magnetLink, 'error': torrent.errorString})
 </code> </code>
  
config/transmission.1703726837.txt.gz · Last modified: 2023/12/28 01:27 by Wulf Rajek