From bbdc96e7627ea3d5fdfd000286628807ac0aa71b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 13 Feb 2019 20:41:26 -0300 Subject: [PATCH] file_name as a property of managed stream, to reflect internal changes --- lbrynet/stream/managed_stream.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/stream/managed_stream.py b/lbrynet/stream/managed_stream.py index ecfac63bd..343f1647a 100644 --- a/lbrynet/stream/managed_stream.py +++ b/lbrynet/stream/managed_stream.py @@ -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