using the bencode library http://bencode.codeplex.com/ I was able to write a program to read the utorrent resume.dat and make a CSV file with the torrent file and save to path. If qbittorent had a CLI option where I could specify the torrent file and save to location I could migrate my torrents over to qbitorrent. I don't know why this cant just be built in to QB Please at least add a CLI option where the torrent and the save to folder option can be specified. I will just script the rest.
BTW if anyone wants the crappy code I wrote to make the CSV here it is. I might rewrite a CLI version later.
private void browse_Click(object sender, EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog(); // Show the dialog.
if (result == DialogResult.OK) // Test result.
{
string file = openFileDialog1.FileName;
this.filebox.Text = file;
}
}
private void go_Click(object sender, EventArgs e)
{
BDict resumeFile = BencodingUtils.DecodeFile(this.filebox.Text) as BDict;
resumeFile.ToList();
List<string> torrentindex = resumeFile.Keys.ToList<string>();
this.outputlistbox1.Items.AddRange(torrentindex.ToArray());
FileInfo file1 = new FileInfo("migrate.csv");
StreamWriter writer = file1.CreateText();
foreach (string i in torrentindex)
{
if (File.Exists(i))
{
// this.outputBox2.Items.Add(i);
// this.listBox1.Items.Add(((resumeFile as BDict)["path"] as BString).Value);
writer.WriteLine("\"" + i.ToString() + "\",\"" + (((resumeFile as BDict)["path"] as BString).Value) + "\"");
}
}
writer.Close();
}
}
}