providers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0, GPL-3.0-or-later Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchDetails

func FetchDetails(channelURL *util.URL) (util.Provider, error)

FetchDetails returns the YouTube details for a channel

func ImportVideo

func ImportVideo(id, creator, projectRoot string) error

ImportVideo will import a YouTube video based on an ID and create a new file in the videos data folder for the specified creator

func LoadYoutube

func LoadYoutube() map[string]interface{}

LoadYoutube initalises the Youtube service

Types

type Video

type Video struct {
	ID          string `yaml:"id"`
	Title       string
	Description string
	Source      string
	Channel     string
}

Video represents the a YouTube video

Jump to

Keyboard shortcuts

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