youtube-cue
srgn
youtube-cue | srgn | |
---|---|---|
3 | 5 | |
14 | 395 | |
- | - | |
6.4 | 9.4 | |
5 months ago | about 1 month ago | |
JavaScript | Rust | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
youtube-cue
-
Ask HN: What apps have you created for your own use?
> CLI: I wanted to download songs from youtube, but they were often stitched as complete albums - so I wrote a youtube-cue generator that generates cuesheets that can then be used to split and tag the yt-dlp downloaded audio file. (https://github.com/captn3m0/youtube-cue)
Thanks for this! I need to do some testing, this might automate the last manual step of my own script for converting YT mixes into distinct tracks. The problem I faced is that often the timestamps are not in the description, but instead in a comment, sometimes not even the pinned/top voted comment. That is why I paste it in via stdin for now.
As this fits the thread topic, a short description of this script. I enjoy YT mixes and wanted to listen to them in my car. I can use an USB stick with media files and playlists which are displayed decently by the infotainment system. I wrote a script that takes in a YT URL (or anything supported by yt-dlp), downloads & converts it to mp3, splits the mp3 file based on a list of timestamps, recognizes (tries to anyway) the songs via SongRec [0], tags & names the files correctly and finally generates an M3U playlist in the format recognized by my car. I use song recognition instead of parsing out the names from the timestamped list as the format of Artist - Title is nearly always slightly different. It was easier to use SongRec instead and get everything I need for tagging with >90% hit rate.
The heavy lifting is done by calling out to yt-dlp, ffmpeg and SongRec. I just glued them together with Python. I like your approach of a do one thing well and might add youtube-cue to the toolset.
[0] https://github.com/marin-m/SongRec
-
Beets is the media library management system for obsessive music geeks
Beets is amazing and comes with great defaults. I wrote code recently to generate CUE sheets from YouTube mixes[0] and beet imports it nicely and easily.
[0]: https://github.com/captn3m0/youtube-cue There is a bash snippet in readme to show the Beets integration.
srgn
- Show HN: Srgn, AST-aware text manipulation
-
Ask HN: What apps have you created for your own use?
It's currently whitelist-based [0]. The downside is larger (code) size. The upside is simplicity. I imagine a blacklist could also work well, at smaller size but with more preprocessing needed.
[0]: https://github.com/alexpovel/srgn/blob/0008cce1c71f0d83f6a31...
- srgn: precise text and code transplantation; think tr/sed + regex + tree-sitter
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Wow! What a coincidence. Just the other day I finished "v1" of a similar tool: https://github.com/alexpovel/srgn , calling it a combination of tr/sed, ripgrep and tree-sitter.
I've spent a lot of time trying to find similar tools, and even list them in the README, but `AST-grep` did not come up! I was a bit confused, as I was sure such a thing must exist already. AST-grep looks much more capable and dynamic, great work.
What are some alternatives?
picard - A cross-platform music tagger powered by the MusicBrainz database. Picard organizes your music collection by updating your tags, renaming your files, and sorting them into a folder structure, exactly the way you want it.
lsd - LSD - line-square-dot: an addicting game
stag - public domain utf8 curses based audio file tagger
oatmeal - Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
full-text-tabs-forever - Full text search all your browsing history
clipzoomfx - Side-project for extracting highlights from (mostly sports) videos
BeetsPluginStructuredCommen
dhcptool - Tool for testing/debugging DHCP servers
stag - STag: A Stable Fiducial Marker System
syntax-searcher - Language-independent command-line utility for syntax-aware pattern matching.
BeetsPluginStructuredComments
webpub - Give me a website, I'll make you an epub.