sandreas / tone

tone is a cross platform audio tagger and metadata editor to dump and modify metadata for a wide variety of formats, including mp3, m4b, flac and more. It has no dependencies and can be downloaded as single binary for Windows, macOS, Linux and other common platforms.
https://pilabor.com
Apache License 2.0
410 stars 17 forks source link

Add `--stdin` / `pipe` support for `tag` command and `tone.json` #18

Open sandreas opened 2 years ago

sandreas commented 2 years ago

Instead of always creating a metadata file, we may want to accept data on stdin / via pipe. Example:

echo '{"album": "My Album"}' | tone tag --stdin="json" a-music-file.mp3

Maybe with --query support:

echo '{"meta": {"album": "My Album"}}' | tone tag --stdin="json" --query="$.meta" a-music-file.mp3