Torrent folder fix

This commit is contained in:
Ade
2018-10-13 12:17:58 +13:00
parent 24f22834ff
commit bd60935493
2 changed files with 2 additions and 0 deletions

View File

@@ -231,6 +231,7 @@ def getFolder(hash):
single_file = True
else:
torrent_folder = os.path.split(torrent_files[0]['name'])[0]
torrent_folder = torrent_folder.split(os.sep)[0]
single_file = False
except:
torrent_folder = None

View File

@@ -81,6 +81,7 @@ def getFolder(torrentid):
single_file = True
else:
torrent_folder = os.path.split(torrent_files[0]['name'])[0]
torrent_folder = torrent_folder.split(os.sep)[0]
single_file = False
except:
torrent_folder = None