mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix torrent names on libtorrent 0.16 on windows.
This commit is contained in:
parent
3d76ab1832
commit
b4903b763e
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class Torrent(object):
|
||||||
|
|
||||||
def get_name(self):
|
def get_name(self):
|
||||||
if self.handle.has_metadata():
|
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:
|
if not name:
|
||||||
name = self.torrent_info.name()
|
name = self.torrent_info.name()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue