forked from LBRYCommunity/lbry-sdk
fix false negative with file completed
field
This commit is contained in:
parent
3ed72a215e
commit
4f8bcfcd18
1 changed files with 2 additions and 1 deletions
|
@ -217,7 +217,8 @@ class ManagedStream:
|
||||||
written_bytes = None
|
written_bytes = None
|
||||||
return {
|
return {
|
||||||
'streaming_url': f"http://{self.config.streaming_host}:{self.config.streaming_port}/stream/{self.sd_hash}",
|
'streaming_url': f"http://{self.config.streaming_host}:{self.config.streaming_port}/stream/{self.sd_hash}",
|
||||||
'completed': (self.output_file_exists and self.status in ('stopped', 'finished')) or all(
|
'completed': (self.output_file_exists and (self.status in ('stopped', 'finished'))
|
||||||
|
or not self.saving.is_set()) or all(
|
||||||
self.blob_manager.is_blob_verified(b.blob_hash) for b in self.descriptor.blobs[:-1]),
|
self.blob_manager.is_blob_verified(b.blob_hash) for b in self.descriptor.blobs[:-1]),
|
||||||
'file_name': file_name,
|
'file_name': file_name,
|
||||||
'download_directory': download_directory,
|
'download_directory': download_directory,
|
||||||
|
|
Loading…
Reference in a new issue