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