Documentation ¶
Index ¶
- func ToVideoId(urlOrId string) (string, error)
- func ToVideoIds(urlsOrIds []string) ([]string, error)
- type Playlist
- type PlaylistDiffResult
- type PlaylistInsert
- type PlaylistItem
- type PlaylistItemDelete
- type YouTube
- func (y *YouTube) CreatePlaylist(ctx context.Context, title, desc, visibility string) (*youtube.Playlist, error)
- func (y *YouTube) DeletePlaylist(ctx context.Context, id string) error
- func (y *YouTube) DiffPlaylist(wantIds []string, gotItems []*youtube.PlaylistItem) PlaylistDiffResult
- func (y *YouTube) GetPlaylist(ctx context.Context, id string) (*youtube.Playlist, error)
- func (y *YouTube) GetPlaylistItems(ctx context.Context, playlistId string) ([]*youtube.PlaylistItem, error)
- func (y *YouTube) GetPlaylists(ctx context.Context) ([]*youtube.Playlist, error)
- func (y *YouTube) SyncPlaylist(ctx context.Context, playlistId string, wantIds []string) (*PlaylistDiffResult, error)
- func (y *YouTube) UpdatePlaylist(ctx context.Context, id, title, desc, visibility string) (*youtube.Playlist, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToVideoIds ¶
Types ¶
type Playlist ¶
type Playlist struct { ID string Title string Description string Visibility string Videos []PlaylistItem }
type PlaylistDiffResult ¶
type PlaylistDiffResult struct { Inserts []PlaylistInsert Deletes []PlaylistItemDelete }
type PlaylistInsert ¶
type PlaylistItem ¶
type PlaylistItemDelete ¶
type PlaylistItemDelete struct {
ItemId string
}
type YouTube ¶
type YouTube struct {
// contains filtered or unexported fields
}
func (*YouTube) CreatePlaylist ¶
func (*YouTube) DeletePlaylist ¶
func (*YouTube) DiffPlaylist ¶
func (y *YouTube) DiffPlaylist(wantIds []string, gotItems []*youtube.PlaylistItem) PlaylistDiffResult
func (*YouTube) GetPlaylist ¶
func (*YouTube) GetPlaylistItems ¶
func (*YouTube) GetPlaylists ¶
func (*YouTube) SyncPlaylist ¶
Click to show internal directories.
Click to hide internal directories.