mirror of
https://github.com/JohnDoee/deluge-streaming/
synced 2026-07-01 07:31:17 -07:00
trying to make path resolution smarter
This commit is contained in:
@@ -468,6 +468,8 @@ class TorrentHandler(object):
|
|||||||
filesystem = self.get_filesystem(infohash)
|
filesystem = self.get_filesystem(infohash)
|
||||||
if path:
|
if path:
|
||||||
stream_item = filesystem.get_item_from_path(path)
|
stream_item = filesystem.get_item_from_path(path)
|
||||||
|
if filesystem == stream_item:
|
||||||
|
stream_item = filesystem.get_item_from_path('%s/%s' % (filesystem.id, path))
|
||||||
else:
|
else:
|
||||||
stream_item = filesystem
|
stream_item = filesystem
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user