From 7f5541eb5c1fdfb996e382464102c06fab35ab8d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 22 Jan 2019 21:30:01 -0300 Subject: [PATCH] adds release_time parameter to RPC publish --- lbrynet/extras/daemon/Daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/extras/daemon/Daemon.py b/lbrynet/extras/daemon/Daemon.py index 9ad7d5cdc..c3fd2b4f2 100644 --- a/lbrynet/extras/daemon/Daemon.py +++ b/lbrynet/extras/daemon/Daemon.py @@ -2394,7 +2394,7 @@ class Daemon(metaclass=JSONRPCServerType): description=None, author=None, language=None, license=None, license_url=None, thumbnail=None, preview=None, nsfw=None, sources=None, channel_name=None, channel_id=None, channel_account_id=None, account_id=None, - claim_address=None, change_address=None): + claim_address=None, change_address=None, release_time=None): """ Make a new name claim and publish associated data to lbrynet, update over existing claim if user already has a claim for name. @@ -2420,6 +2420,7 @@ class Daemon(metaclass=JSONRPCServerType): [--channel_name=] [--channel_id=] [--channel_account_id=...] [--account_id=] [--claim_address=] [--change_address=] + [--release_time=] Options: --name= : (str) name of the content (can only consist of a-z A-Z 0-9 and -(dash)) @@ -2452,6 +2453,7 @@ class Daemon(metaclass=JSONRPCServerType): --thumbnail= : (str) thumbnail url --preview= : (str) preview url --nsfw= : (bool) whether the content is nsfw + --release_time= : (int) seconds since Unix Epoch in GMT time. Can be negative. --sources= : (str) {'lbry_sd_hash': sd_hash} specifies sd hash of file --channel_name= : (str) name of the publisher channel name in the wallet --channel_id= : (str) claim id of the publisher channel, does not check @@ -2523,6 +2525,8 @@ class Daemon(metaclass=JSONRPCServerType): metadata['preview'] = preview if nsfw is not None: metadata['nsfw'] = bool(nsfw) + if release_time is not None: + metadata['releaseTime'] = int(release_time) metadata['version'] = '_0_1_0'