Closed tzarebczan closed 5 years ago
I added the content duration in this pr: https://github.com/lbryio/lbryschema/pull/24
@KamilPiekutowski want to take another stab at this?
@tzarebczan yes.
@KamilPiekutowski Please let us know if there's any particular questions you have about this ticket and the other one for release date.
after signatures
Another to add is contentHash
- this is the hash of the unencrypted file that the stream assembles into.
@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.
reconstruct the file list entry
not sure i understand this. what do you mean?
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?
@jackrobison should we be adding file hash in this go around? What does it help with again?
Nevermind, hash is in the PR.
Schema related changes for: https://github.com/lbryio/lbry/issues/918
Add the following metadata fields:
file
- a dictionary with info about the file. this will grow eventually. for now it should have:name
- the filename. 255 chars max.size
- the size of the original fileduration
- an integer that represents how many seconds long the file is. only applies to files that have a duration, like audio or video file.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