Add file attributes to metadata #9
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/types#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Definition of Done
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.
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.