morg

command module
v0.0.0-...-d1bcfc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: ISC Imports: 11 Imported by: 0

README

morg

morg

Tool for organizing music by the audio files' metadata.

Installation

  1. Install Go
  2. 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

  1. 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.
  2. "stats" of the music in a given dir
    • Might be doable in just a shell script with some external commands currently.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL