Documentation ¶
Index ¶
- Constants
- func ChannelNotEndedVideos(channelId string, rdx kevlar.ReadableRedux) []string
- func ExtractMetadata(ipr *youtube_urls.InitialPlayerResponse) map[string][]string
- func FmtNow() string
- func GetCaptions(dl *dolo.Client, rdx kevlar.WriteableRedux, videoId string, ...) error
- func GetChannelPlaylistsMetadata(channelPlaylistsPage *youtube_urls.ChannelPlaylistsInitialData, ...) error
- func GetChannelVideosMetadata(channelVideosPage *youtube_urls.ChannelVideosInitialData, channelId string, ...) error
- func GetPlayerContent(hc *http.Client, playerUrl string) (io.ReadCloser, error)
- func GetPlaylistMetadata(playlistPage *youtube_urls.PlaylistInitialData, playlistId string, expand bool, ...) error
- func GetPosters(videoId string, dl *dolo.Client, force bool, ...) error
- func GetVideoPage(videoId string) (*youtube_urls.InitialPlayerResponse, error)
- func GetYtDlpBinary() string
- func LocateLocalVideo(videoId string) (string, error)
- func ParsePlaylistId(playlistId string) (string, error)
- func ParsePlaylistIds(args ...string) ([]string, error)
- func ParseVideoId(videoId string) (string, error)
- func ParseVideoIds(args ...string) ([]string, error)
- func PlayerVersion(playerUrl string) string
- func PlaylistNotEndedVideos(playlistId string, rdx kevlar.ReadableRedux) []string
- func RelLocalVideoFilename(channel, title, videoId string) string
Constants ¶
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 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 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
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 ParsePlaylistIds ¶ added in v0.1.85
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 ParseVideoIds ¶ added in v0.1.64
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 PlaylistNotEndedVideos ¶ added in v0.5.0
func PlaylistNotEndedVideos(playlistId string, rdx kevlar.ReadableRedux) []string
func RelLocalVideoFilename ¶ added in v0.5.85
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.