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
421 stars 17 forks source link

Feature: Add DSL to create simple custom taggers #8

Closed sandreas closed 2 years ago

sandreas commented 2 years ago

With jint (https://github.com/sebastienros/jint) it should be possible to add custom taggers via providing a javascript function:

tone tag --custom-tagger='function(meta) {meta.Title="testing"; return "my-custom-tagger"}' --tagger="my-custom-tagger"

# or
tone tag --custom-tagger-file='my-taggers.js --tagger="my-custom-tagger"

This would be a nice extension.

sandreas commented 2 years ago

done with v0.0.4