Skip to content

stve/tn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tn

An experiment in writing a golang CLI to replace some of my ruby scripts for managing/manipulating mp3s.

Note: These scripts are fairly customized to my use-case.

Usage

tn (command)

Commands

Artwork

Set the cover image based on filenames. Running the artwork command will update the cover art if an image is found with a matching filename.

tn artwork

Basically, it assumes your files look like this:

ls ~/Downloads/

Owsey - And Then I Woke Up.jpg
Owsey - And Then I Woke Up.mp3

Clear

Removes all existing id3 tags from all mp3s in the current directory.

tn clear

Cover

Set the cover image for a group of mp3 files in a directory. Assumes an image cover.jpg exists in the directory in which you are running the command.

tn cover

iTunes

Load all mp3s in the current directory into iTunes.

tn itunes

Set/Update Tags

Set artist name:

tn tag --artist "Owsey"

Set the album name:

tn tag --album "To The Child Drifting Out At Sea"

Set the title:

tn tag --title "I've Lost All Light In My Life"

By default, these commands will set on all mp3s in a given directory. For artist and album, this is probably desired but for song titles you probably will want to specify the file to update:

tn tag --title "I've Lost All Light In My Life" --file song.mp3

Multiple flags can be passed at once:

tn tag --artist "Owsey" --album "To The Child Drifting Out At Sea"

Autotagging

Autotagging is a bit of a unique use-case. If your files are named in the format <artist name> - <song title>.mp3, you can use the --auto flag to set the artist and title for all files in a directory using:

tn tag --auto

View Tags

View the current tags on mp3s in the current directory:

tn tags

If you'd like to see if there's an image, you can pass the --artwork flag:

tn tags --artwork

Copyright

Copyright (c) 2016 Steve Agalloco.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published