yeti

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDelay = 24 * time.Hour

Variables

This section is empty.

Functions

func ChannelNotEndedVideos added in v0.5.33

func ChannelNotEndedVideos(channelId string, rdx kevlar.ReadableRedux) []string

func ExtractMetadata added in v0.1.63

func ExtractMetadata(ipr *youtube_urls.InitialPlayerResponse) map[string][]string

func FmtNow added in v0.5.0

func FmtNow() string

func GetCaptions added in v0.1.61

func GetCaptions(dl *dolo.Client, rdx kevlar.WriteableRedux, videoId string, captionTracks []youtube_urls.CaptionTrack, force bool) error

func GetChannelPlaylistsMetadata added in v0.5.33

func GetChannelPlaylistsMetadata(channelPlaylistsPage *youtube_urls.ChannelPlaylistsInitialData, channelId string, rdx kevlar.WriteableRedux) error

func GetChannelVideosMetadata added in v0.5.24

func GetChannelVideosMetadata(channelVideosPage *youtube_urls.ChannelVideosInitialData, channelId string, expand bool, rdx kevlar.WriteableRedux) error

func GetPlayerContent added in v0.3.70

func GetPlayerContent(hc *http.Client, playerUrl string) (io.ReadCloser, error)

func GetPlaylistMetadata added in v0.5.0

func GetPlaylistMetadata(playlistPage *youtube_urls.PlaylistInitialData, playlistId string, expand bool, rdx kevlar.WriteableRedux) error

func GetPosters added in v0.1.63

func GetPosters(videoId string, dl *dolo.Client, force bool, qualities ...youtube_urls.ThumbnailQuality) error

func GetVideoPage added in v0.2.20

func GetVideoPage(videoId string) (*youtube_urls.InitialPlayerResponse, error)

func GetYtDlpBinary added in v0.5.80

func GetYtDlpBinary() string

func LocateLocalVideo added in v0.5.85

func LocateLocalVideo(videoId string) (string, error)

LocateLocalVideo looks for local video files for a given video-id previously we'd use RelLocalVideoFilename func above and check that name, however as it turns out - it's not uncommon for videos to change the title which leads to existing local files seemingly missing - as we've downloaded them under different title previously. Using LocateLocalVideo should mitigate this problem.

func ParsePlaylistId added in v0.5.0

func ParsePlaylistId(playlistId string) (string, error)

func ParsePlaylistIds added in v0.1.85

func ParsePlaylistIds(args ...string) ([]string, error)

ParsePlaylistIds converts list of playlistIds in any form - as playlist-ids, YouTube /watch, youtu.be/ URLs (in any order and combination) to a list of videoIds. Inputs in unsupported format will produce an error.

func ParseVideoId added in v0.5.0

func ParseVideoId(videoId string) (string, error)

func ParseVideoIds added in v0.1.64

func ParseVideoIds(args ...string) ([]string, error)

ParseVideoIds converts list of videoIds in any form - as video-ids, YouTube /watch, youtu.be/ URLs (in any order and combination) to a list of videoIds. Inputs in unsupported format will produce an error.

func PlayerVersion added in v0.3.70

func PlayerVersion(playerUrl string) string

func PlaylistNotEndedVideos added in v0.5.0

func PlaylistNotEndedVideos(playlistId string, rdx kevlar.ReadableRedux) []string

func RelLocalVideoFilename added in v0.5.85

func RelLocalVideoFilename(channel, title, videoId string) string

RelLocalVideoFilename constructs a filename based on video-id and optional channel and video title. If the channel or video title are available, the filename would be "channel/title-video-id.mp4". If the channel, title are not available, the filename would be "video-id.mp4". In either case, the resulting filename is sanitized to remove characters not suitable for file names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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