From 4307699bbfe51b45634597d3894fc1ced355957b Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Mon, 26 Nov 2012 19:42:36 -0500 Subject: [PATCH] Fix torrent names on libtorrent 0.16 on windows. --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 027077c23..dd2fa3918 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -668,7 +668,7 @@ class Torrent(object): def ti_name(): if self.handle.has_metadata(): - name = self.torrent_info.file_at(0).path.split("/", 1)[0] + name = self.torrent_info.file_at(0).path.replace("\\", "/", 1).split("/", 1)[0] if not name: name = self.torrent_info.name() try: