Easiest way to switch from windows to linux

General support for problems installing or using Deluge
Post Reply
blithen

Easiest way to switch from windows to linux

Post by blithen »

I have all my torrents in windows added to deluge, now I just need to change the drive number to my external in linux. (In windows it's F:/Music/*, in linux it's /media/External/Music/*) What's the easiest way to go about this? Or is there a way? I'll cry if i have to add them all again...
I'll try to explain it better if this doesn't make sense.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Easiest way to switch from windows to linux

Post by Cas »

You can modify the save paths in the torrents.state file. Here is a quick python script you can use to alter the save_path:

Code: Select all

state_file_path = "/home/ubuntu/.config/deluge/state/torrents.state"
state_file = open(state_file_path, "rb")
state = cPickle.load(state_file)
state_file.close()

for torrent in state.torrents:
    torrent.save_path = '/home/ubuntu/Downloads/'

state_file = open(state_file_path, "wb")
state = cPickle.dump(state, state_file)
state_file.close()
Post Reply