player

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEpisodeNumber

func ExtractEpisodeNumber(episodeStr string) string

ExtractEpisodeNumber extracts the episode number from the episode string

func GetVideoURLForEpisode

func GetVideoURLForEpisode(episodeURL string) (string, error)

GetVideoURLForEpisode extracts the actual video URL from the video source URL

func HandleDownloadAndPlay

func HandleDownloadAndPlay(videoURL string, episodes []api.Episode, selectedEpisodeNum int, animeURL, episodeNumberStr string)

HandleDownloadAndPlay handles the download and playback of the video

func SelectEpisodeWithFuzzyFinder

func SelectEpisodeWithFuzzyFinder(episodes []api.Episode) (string, string, error)

Types

type VideoData

type VideoData struct {
	Src   string `json:"src"`
	Label string `json:"label"`
}

VideoData represents the video data structure, with a source URL and a label

type VideoResponse

type VideoResponse struct {
	Data []VideoData `json:"data"`
}

VideoResponse represents the video response structure with a slice of VideoData

Jump to

Keyboard shortcuts

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