From ca835f3f805b426b3787257e85525f17065f43a3 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 15 Feb 2019 16:26:13 -0500 Subject: [PATCH] fix 1883 --- lbrynet/stream/stream_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbrynet/stream/stream_manager.py b/lbrynet/stream/stream_manager.py index a69b57234..719068982 100644 --- a/lbrynet/stream/stream_manager.py +++ b/lbrynet/stream/stream_manager.py @@ -104,9 +104,12 @@ class StreamManager: self.streams.remove(stream) return False file_name = os.path.basename(stream.downloader.output_path) + output_dir = os.path.dirname(stream.downloader.output_path) await self.storage.change_file_download_dir_and_file_name( - stream.stream_hash, self.config.download_dir, file_name + stream.stream_hash, output_dir, file_name ) + stream._file_name = file_name + stream.download_directory = output_dir self.wait_for_stream_finished(stream) return True return True