Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToM4a(filename string) (err error)
- func DownloadFromYouTube(downloadedFilename string, downloadURL string) (err error)
- func GetMusicVideoID(title string, artist string, notid ...string) (id string, err error)
- func GetSong(title string, artist string, option ...Options) (savedFilename string, err error)
- func ParseDurationString(s string) (milliseconds int64)
- func SetID3Tags(fname, artist, title, yt string) (err error)
- type Options
- type YouTubeInfo
Constants ¶
View Source
const CHUNK_SIZE = 524288
Variables ¶
View Source
var OptionShowProgressBar bool
Functions ¶
func ConvertToM4a ¶ added in v0.7.9
ConvertToM4a uses ffmpeg to convert to m4a
func DownloadFromYouTube ¶ added in v0.3.0
DownloadFromYouTube will use the download URL to get it in parallel and save it as the downloadedFilename.
func GetMusicVideoID ¶ added in v0.3.0
GetMusicVideoID returns the ids for a specified title and artist
func GetSong ¶
GetSong requires passing in the options which requires at least a title. If an Artist is provided, it will save it as Artist - Title.mp3 You can also pass in a duration, and it will try to find a video that is within 10 seconds of that duration.
func ParseDurationString ¶ added in v0.7.6
ParseDurationString 00:07:50.01 into milliseconds
func SetID3Tags ¶ added in v0.4.0
Types ¶
type Options ¶
Options allow you to set the artist, title and duration to find the right song. You can also set the progress and debugging for the program execution.
type YouTubeInfo ¶
Click to show internal directories.
Click to hide internal directories.