youtubedl

package
v0.0.0-...-6da4afb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YtExtractAudioFromID

func YtExtractAudioFromID(options YtOptions) (string, error)

YtExtractAudioFromID extracts audio and onverts it into desired format

func YtSearchByName

func YtSearchByName(options YtOptions) (string, error)

YtSearchByName search and download youtube audio track using Fulltitle

Types

type TrackInfo

type TrackInfo struct {
	Fulltitle string `json:"fulltitle"`
	Duration  int
}

TrackInfo holds Information about track

func YtGetTrackDetails

func YtGetTrackDetails(options YtOptions) (*TrackInfo, error)

YtGetTrackDetails gets information about a track

type YtOptions

type YtOptions struct {
	Path        string
	TrackName   string
	AudioFormat string
	VideoID     string
}

YtOptions holds options to be passed to youtubedl

Jump to

Keyboard shortcuts

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