Fix torrent names on libtorrent 0.16 on windows.

This commit is contained in:
Chase Sterling 2012-11-26 19:42:36 -05:00
parent e7a2a8dcee
commit 4307699bbf
1 changed files with 1 additions and 1 deletions

View File

@ -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: