morg
Tool for organizing music by the audio files' metadata.
Installation
- Install Go
- Install morg
go install codeberg.org/BubbyRoosh/morg@latest
Usage
Simply run morg with the paths to all the files you want sorted:
morg path/to/file
Or...
Scan all files recursively with find
(takes stdin input separated by '\n'):
find -name "*.mp3" | morg
morg
can also be used to help with searching for music.
morg --get <tag>
will list the text within the tag, a tab character, and the name of each file provided.
For example, here is a method to get all songs made after the year 1981:
find . -name "*.flac" | morg --get year | awk '$1 > 1981'
Or to get all unique artists in your library:
find . -name "*.flac" | morg --get artist | awk 'BEGIN{FS="\t"} {print $1}' | uniq
Information on command-line arguments can be displayed by passing "--help"
TODO
- Metadata fetch (possibly plugins? (lua?))
- Need method to write metadata as well or just keep it as a cache somewhere based on a search of the filename.
- "stats" of the music in a given dir
- Might be doable in just a shell script with some external commands currently.