ytmusic

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN_FILE = "token.json"
)

Variables

This section is empty.

Functions

func NewService

func NewService(oauthfile string) (*youtube.Service, error)

Types

type Playlist

type Playlist struct {
	Title         string
	Description   string
	PrivacyStatus string // private, public, unlisted
	Id            string
	// contains filtered or unexported fields
}

func NewPlaylist

func NewPlaylist(svc *youtube.Service, tt string, desc string, stat string, dup bool, max int64) (*Playlist, error)

func (*Playlist) AddItem

func (p *Playlist) AddItem(tr *Track) error
type Search struct {
	MaxResults      int64
	MaxTries        int
	Q               string
	RegionCode      string
	VideoCategoryId string
	// contains filtered or unexported fields
}

func NewSearch

func NewSearch(svc *youtube.Service) *Search

func (*Search) Do

func (s *Search) Do() (*Track, error)

type Track

type Track struct {
	Title  string
	Artist string
	Id     string
}

Jump to

Keyboard shortcuts

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