forked from LBRYCommunity/lbry-sdk
fix 1883
This commit is contained in:
parent
dbb6ba6241
commit
ca835f3f80
1 changed files with 4 additions and 1 deletions
|
@ -104,9 +104,12 @@ class StreamManager:
|
||||||
self.streams.remove(stream)
|
self.streams.remove(stream)
|
||||||
return False
|
return False
|
||||||
file_name = os.path.basename(stream.downloader.output_path)
|
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(
|
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)
|
self.wait_for_stream_finished(stream)
|
||||||
return True
|
return True
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue