forked from LBRYCommunity/lbry-sdk
file_name as a property of managed stream, to reflect internal changes
This commit is contained in:
parent
fc0c949187
commit
bbdc96e762
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,7 @@ class ManagedStream:
|
|||
self.loop = loop
|
||||
self.blob_manager = blob_manager
|
||||
self.download_directory = download_directory
|
||||
self.file_name = file_name
|
||||
self._file_name = file_name
|
||||
self.descriptor = descriptor
|
||||
self.downloader = downloader
|
||||
self.stream_hash = descriptor.stream_hash
|
||||
|
@ -35,6 +35,10 @@ class ManagedStream:
|
|||
self._status = status
|
||||
self.fully_reflected = asyncio.Event(loop=self.loop)
|
||||
|
||||
@property
|
||||
def file_name(self):
|
||||
return self.downloader.output_file_name if self.downloader else self._file_name
|
||||
|
||||
@property
|
||||
def status(self) -> str:
|
||||
return self._status
|
||||
|
|
Loading…
Reference in a new issue