Skip to content

alancesar/tidy-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tidy-music

Organize your music library according its tags.

Building

cd cli
go build -o tidy-music

Usage

./tidy-music [-s] [-o] [-t] [-p]

Parameters

  • s: The source path. Its default value is ./.
  • o: The output path. Its default value also is ./.
  • t: Test mode. If true only show the expected output. Its default is false.
  • p: The output directory structure pattern. It follows the Golang's text/template guide. Available fields:
    • Artist
    • Album
    • Year
    • Track number
    • Title

Output

The default p value is {{.Artist}}/[{{.Year}}] {{.Album}}/{{printf "%02d" .Track}} - {{.Title}} so the generated output will be this following structure:

Artist
└── [Year] Album
    └── # - Title.ext

Example:

Green Day
├── [1994] Dookie
│   ├── 01 - Burnout.mp3
│   └── 02 - Having a Blast.mp3
└── [1995] Insomniac
    └── 01 - Armatage Shanks.wma

All the / and : in track and album names will be replaced by -.

About

Automated script to arrange music libraries

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages