Merge pull request #1833 from lbryio/fix-publish-update
Fix publish when making an update with an existing stream
This commit is contained in:
commit
16d0ff8376
1 changed files with 1 additions and 1 deletions
|
@ -2051,7 +2051,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
claim_dict['stream']['source']['contentType'] = guess_media_type(file_path)
|
claim_dict['stream']['source']['contentType'] = guess_media_type(file_path)
|
||||||
claim_dict['stream']['source']['version'] = "_0_0_1" # need current version here
|
claim_dict['stream']['source']['version'] = "_0_0_1" # need current version here
|
||||||
else:
|
else:
|
||||||
if not ('source' not in claim_dict['stream'] and existing_claims):
|
if 'source' not in claim_dict['stream'] and not existing_claims:
|
||||||
raise Exception("no previous stream to update")
|
raise Exception("no previous stream to update")
|
||||||
claim_dict['stream']['source'] = existing_claims[-1].claim_dict['stream']['source']
|
claim_dict['stream']['source'] = existing_claims[-1].claim_dict['stream']['source']
|
||||||
stream_hash = await self.storage.get_stream_hash_for_sd_hash(claim_dict['stream']['source']['source'])
|
stream_hash = await self.storage.get_stream_hash_for_sd_hash(claim_dict['stream']['source']['source'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue