mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-19 03:19:26 +01:00
Torrent folder fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user