diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 85433e533..f90a7b5e7 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: