Module: deluge
Branch: master
Commit: b4903b763e4c9b60adb9fbee1b2fa85152a487e2

Author: Chase Sterling <chase.sterl...@gmail.com>
Date:   Thu Nov 29 23:26:37 2012 -0500

Fix torrent names on libtorrent 0.16 on windows.

---

 deluge/core/torrent.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index 85433e5..f90a7b5 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -252,7 +252,7 @@ class Torrent(object):
 
     def get_name(self):
         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:

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to deluge-commit@googlegroups.com.
To unsubscribe from this group, send email to 
deluge-commit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to