Skip to content

zeevallin/songtitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Songtitle

Library to get a song title, artist and other tags from a file name or a youtube video.

Usage

import (
    "fmt"
    "github.com/zeevallin/songtitle"
)

func main() {
	// Get song title from a file name
	song := songtitle.Parse("Foo Fighters • Everlong (CC) 🎤 [Karaoke] [Instrumental Lyrics]")
	fmt.Printf("%s - %s\n", song.Artist, song.Title)
	for _, tag := range song.Tags {
		fmt.Printf("\t- %s\n", tag)
	}
	// Output:
	// Foo Fighters - Everlong
	// 	- CC
	//	- Karaoke
	//	- Instrumental Lyrics
	//
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages