Versions in this module Expand all Collapse all v0 v0.2.2 Oct 4, 2025 v0.2.1 Oct 4, 2025 v0.2.0 Oct 4, 2025 Changes in this version + type Subtitles struct + Subtitles []SubtitleItem + VideoID string v0.1.1 Mar 18, 2025 v0.1.0 Mar 18, 2025 Changes in this version + const ApiURL + const SubsURL + var ErrForbidden = errors.New("access not allowed") + var ErrPageNotFound = errors.New("page not found") + func GetLanguageName(langCode string) string + func ListShows() []string + type Option func(*Scrapper) + func WithOutputPath(path string) Option + type Scrapper struct + Program string + func NewScrapper(program string, options ...Option) *Scrapper + func (s *Scrapper) DownloadSubtitles(meta *VideoMetadata, outputDir string) error + func (s *Scrapper) DownloadVideoMeta(videoID string) (*VideoMetadata, error) + func (s *Scrapper) FetchSubtitles(id string) (*SubtitleResponse, error) + func (s *Scrapper) SaveVideoToFile(meta *VideoMetadata, directory string) error + func (s *Scrapper) Scrape(maxPages int) (int, []error) + func (s *Scrapper) ScrapePage(page int) ([]*VideoInfo, error) + type Show struct + ID string + Regex string + URL string + func ShowMap(name string) *Show + type SubtitleItem struct + Lang string + Src string + type SubtitlePage struct + Items []SubtitleItem + NumElements int + Number int + Offset int + Size int + Total int + TotalPages int + type SubtitleResponse struct + Page SubtitlePage + type VideoInfo struct + ID string + URL string + type VideoMetadata struct + HTMLUrl string + ID string + LongTitle string + PublicationDate string + URI string + func (m *VideoMetadata) Parse(body string) error + type VideoPage struct + Items []VideoMetadata + NumElements int + Number int + Offset int + Size int + Total int + TotalPages int + type VideoResponse struct + Page VideoPage