diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 441d4b93a..756ff6bc7 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -1965,10 +1965,11 @@ class Daemon(metaclass=JSONRPCServerType): [--outpoint=] [--txid=] [--nout=] [--channel_claim_id=] [--channel_name=] [--claim_name=] [--blobs_in_stream=] - [--blobs_remaining=] [--uploading_to_reflector=] - [--is_fully_reflected=] [--status=] [--completed=] - [--sort=] [--comparison=] [--full_status=] [--reverse] - [--page=] [--page_size=] [--wallet_id=] + [--download_path=] [--blobs_remaining=] + [--uploading_to_reflector=] [--is_fully_reflected=] + [--status=] [--completed=] [--sort=] [--comparison=] + [--full_status=] [--reverse] [--page=] [--page_size=] + [--wallet_id=] Options: --sd_hash= : (str) get file with matching sd hash @@ -1985,6 +1986,7 @@ class Daemon(metaclass=JSONRPCServerType): --channel_name= : (str) get file with matching channel name --claim_name= : (str) get file with matching claim name --blobs_in_stream : (int) get file with matching blobs in stream + --download_path= : (str) get file with matching download path --uploading_to_reflector= : (bool) get files currently uploading to reflector --is_fully_reflected= : (bool) get files that have been uploaded to reflector --status= : (str) match by status, ( running | finished | stopped ) diff --git a/lbry/file/source_manager.py b/lbry/file/source_manager.py index bf2846a00..b4babc7a9 100644 --- a/lbry/file/source_manager.py +++ b/lbry/file/source_manager.py @@ -27,6 +27,7 @@ class SourceManager: 'status', 'file_name', 'added_on', + 'download_path', 'claim_name', 'claim_height', 'claim_id', diff --git a/lbry/stream/managed_stream.py b/lbry/stream/managed_stream.py index 73976a8a3..da625c381 100644 --- a/lbry/stream/managed_stream.py +++ b/lbry/stream/managed_stream.py @@ -120,6 +120,10 @@ class ManagedStream(ManagedDownloadSource): def mime_type(self): return guess_media_type(os.path.basename(self.descriptor.suggested_file_name))[0] + @property + def download_path(self): + return f"{self.download_directory}/{self._file_name}" if self.download_directory and self._file_name else None + # @classmethod # async def create(cls, loop: asyncio.AbstractEventLoop, config: 'Config', # file_path: str, key: Optional[bytes] = None,