rename youtube video files #9
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
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/lbry.go#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?
Rather than publishing the file as the unique id inserted into YouTube, can we instead have a smarter algorithm that trims/compresses the video title?
Something like following replaces coupled with a 25-30 char limit would probably get most of the way:
/[^\p{L}]//
/\s+/-
A smarter version could split on spaces/dashes and try to ensure it only uses a whole number of words.
Prompted by noticing I have a bunch of videos named things like
FXPKJUE86d0.mp4
I suggest we use the same naming convention we have for claim names: https://github.com/lbryio/lbry.go/blob/master/ytsync/sources/youtubeVideo.go#L61
we could improve this function too and thus limit high fees based on long claim names
feature added and working fine :)