Documentation
¶
Index ¶
- type SyncParams
- type SyncSummary
- type YoutubeVideo
- func (v *YoutubeVideo) ID() string
- func (v *YoutubeVideo) IDAndNum() string
- func (v *YoutubeVideo) PlaylistPosition() int
- func (v *YoutubeVideo) PublishedAt() time.Time
- func (v *YoutubeVideo) Size() *int64
- func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingVideoData *sdk.SyncedVideo, ...) (*SyncSummary, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncParams ¶
type SyncSummary ¶
type YoutubeVideo ¶
type YoutubeVideo struct {
// contains filtered or unexported fields
}
func NewMockedVideo ¶
func NewMockedVideo(directory string, videoID string, youtubeChannelID string, stopGroup *stop.Group, pool *ip_manager.IPPool) *YoutubeVideo
func NewYoutubeVideo ¶
func NewYoutubeVideo(directory string, videoData *ytdl.YtdlVideo, playlistPosition int64, stopGroup *stop.Group, pool *ip_manager.IPPool) (*YoutubeVideo, error)
func (*YoutubeVideo) ID ¶
func (v *YoutubeVideo) ID() string
func (*YoutubeVideo) IDAndNum ¶
func (v *YoutubeVideo) IDAndNum() string
func (*YoutubeVideo) PlaylistPosition ¶
func (v *YoutubeVideo) PlaylistPosition() int
func (*YoutubeVideo) PublishedAt ¶
func (v *YoutubeVideo) PublishedAt() time.Time
func (*YoutubeVideo) Size ¶
func (v *YoutubeVideo) Size() *int64
func (*YoutubeVideo) Sync ¶
func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingVideoData *sdk.SyncedVideo, reprocess bool, walletLock *sync.RWMutex, pbWg *sync.WaitGroup, pb *mpb.Progress) (*SyncSummary, error)
Click to show internal directories.
Click to hide internal directories.