youtube

package
v0.0.0-...-f573b35 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateYoutubeCommand

func CreateYoutubeCommand() *cli.Command

func DownloadPlaylistDetails

func DownloadPlaylistDetails(store kv.KV, service *youtube.Service) error

func DownloadPlaylists

func DownloadPlaylists(store kv.KV, service *youtube.Service) error

func DownloadVideoDetails

func DownloadVideoDetails(store kv.KV, service *youtube.Service) error

func DownloadVideoDetailsBatch

func DownloadVideoDetailsBatch(store kv.KV, service *youtube.Service, account string, ids []string) error

func GetChannel

func GetChannel(service *youtube.Service, name string) (*youtube.Channel, error)

func GetPlaylists

func GetPlaylists(service *youtube.Service, id string) ([]*youtube.Playlist, error)

func GetVideos

func GetVideos(service *youtube.Service, ids []string) ([]*youtube.Video, error)

func GetVideosForPlaylist

func GetVideosForPlaylist(service *youtube.Service, id string) ([]*youtube.PlaylistItem, error)

func UpdateAccount

func UpdateAccount(store kv.KV, service *youtube.Service, slug string) error

Types

type YoutubePlaylistItem

type YoutubePlaylistItem struct {
	Account       string
	PlaylistId    string
	PlaylistTitle string
	VideoId       string
}

type YoutubeVideo

type YoutubeVideo struct {
	Account           string
	AccountId         string
	PlaylistAccountId string
	Id                string
	Title             string
	PublishedAt       int64
	LikeCount         int
	ViewCount         int
}

Jump to

Keyboard shortcuts

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