lbryio / types

Cross-language definitions for standard LBRY types
8 stars 9 forks source link

Add file attributes to metadata #9

Closed tzarebczan closed 5 years ago

tzarebczan commented 7 years ago

Schema related changes for: https://github.com/lbryio/lbry/issues/918

Add the following metadata fields:

In the future, we may want to add hash (a hash of the original file) to that dictionary as well, but we will leave it out for now.

Internal Use

Acceptance Criteria

1. 2. 3.

Definition of Done

KamilPiekutowski commented 7 years ago

I added the content duration in this pr: https://github.com/lbryio/lbryschema/pull/24

tzarebczan commented 6 years ago

@KamilPiekutowski want to take another stab at this?

KamilPiekutowski commented 6 years ago

@tzarebczan yes.

tzarebczan commented 6 years ago

@KamilPiekutowski Please let us know if there's any particular questions you have about this ticket and the other one for release date.

alyssaoc commented 5 years ago

after signatures

jackrobison commented 5 years ago

Another to add is contentHash - this is the hash of the unencrypted file that the stream assembles into.

tzarebczan commented 5 years ago

@lyoshenka, @jackrobison and I ran into the real reason we need the contentHash...so one could update a claim without having the file download (metadata only) and reconstruct the file list entry with the contentHash for consistency.

lyoshenka commented 5 years ago

reconstruct the file list entry

not sure i understand this. what do you mean?

tzarebczan commented 5 years ago

Jack originally wanted to re-create the file_list entry for the edited file in stopped/incomplete mode, but then we decided not to do that. @jackrobison do we still want this?

tzarebczan commented 5 years ago

@jackrobison should we be adding file hash in this go around? What does it help with again?

tzarebczan commented 5 years ago

Nevermind, hash is in the PR.