Versions in this module Expand all Collapse all v2 v2.2.2 May 18, 2022 v2.2.1 May 8, 2022 v2.2.0 May 1, 2022 Changes in this version + const AR + const BR + const DE + const ES + const FR + const IT + const JP + const LA + const PT + const RU + const US + func ParseBetaEpisodeURL(url string) (episodeId string, ok bool) + func ParseBetaSeriesURL(url string) (seasonId string, ok bool) + func ParseEpisodeURL(url string) (seriesName, title string, episodeNumber int, webId int, ok bool) + func ParseVideoURL(url string) (seriesName string, ok bool) + type AccessError struct + Body []byte + Message string + URL string + func (ae *AccessError) Error() string + type Crunchyroll struct + Client *http.Client + Config struct{ ... } + Context context.Context + Locale LOCALE + SessionID string + func LoginWithCredentials(user string, password string, locale LOCALE, client *http.Client) (*Crunchyroll, error) + func LoginWithSessionID(sessionID string, locale LOCALE, client *http.Client) (*Crunchyroll, error) + func (c *Crunchyroll) ExtractEpisodesFromUrl(url string, audio ...LOCALE) ([]*Episode, error) + func (c *Crunchyroll) FindEpisodeByName(seriesName, episodeTitle string) ([]*Episode, error) + func (c *Crunchyroll) FindVideoByName(seriesName string) (Video, error) + func (c *Crunchyroll) IsCaching() bool + func (c *Crunchyroll) ParseUrl(url string) (*Series, []*Episode, error) + func (c *Crunchyroll) Search(query string, limit uint) (s []*Series, m []*Movie, err error) + func (c *Crunchyroll) SetCaching(caching bool) + type Downloader struct + Context context.Context + DeleteTempAfter bool + FFmpegOpts []string + Goroutines int + LockOnSegmentDownload bool + OnSegmentDownload func(segment *m3u8.MediaSegment, current, total int, file *os.File) error + TempDir string + Writer io.Writer + func NewDownloader(context context.Context, writer io.Writer, goroutines int, ...) Downloader + type Episode struct + AvailabilityNotes string + AvailableOffline bool + ChannelID string + Description string + DurationMS int + Episode string + EpisodeAirDate time.Time + EpisodeNumber int + HDFlag bool + ID string + Images struct{ ... } + IsClip bool + IsDubbed bool + IsMature bool + IsPremiumOnly bool + IsSubbed bool + ListingID string + MatureBlocked bool + NextEpisodeID string + NextEpisodeTitle string + Playback string + ProductionEpisodeID string + SeasonID string + SeasonNumber int + SeasonSlugTitle string + SeasonTags []string + SeasonTitle string + SeoDescription string + SeoTitle string + SequenceNumber float64 + SeriesID string + SeriesSlugTitle string + SeriesTitle string + Slug string + SlugTitle string + StreamID string + SubtitleLocales []LOCALE + Title string + func EpisodeFromID(crunchy *Crunchyroll, id string) (*Episode, error) + func (e *Episode) AudioLocale() (LOCALE, error) + func (e *Episode) GetFormat(resolution string, subtitle LOCALE, hardsub bool) (*Format, error) + func (e *Episode) Streams() ([]*Stream, error) + type Format struct + AudioLocale LOCALE + FormatType FormatType + Hardsub LOCALE + ID string + Subtitles []*Subtitle + Video *m3u8.Variant + func (f *Format) Download(downloader Downloader) error + func (f *Format) InitVideo() error + type FormatType string + const EPISODE + const MOVIE + type LOCALE string + type Movie struct + MovieListingMetadata struct{ ... } + Playback string + PromoDescription string + PromoTitle string + SearchMetadata struct{ ... } + func MovieFromID(crunchy *Crunchyroll, id string) (*Movie, error) + func (m *Movie) MovieListing() (movieListings []*MovieListing, err error) + type MovieListing struct + AvailabilityNotes string + AvailableOffline bool + Description string + DurationMS int + ID string + Images struct{ ... } + IsDubbed bool + IsMature bool + IsPremiumOnly bool + IsSubbed bool + ListeningID string + Playback string + Slug string + SlugTitle string + Title string + func MovieListingFromID(crunchy *Crunchyroll, id string) (*MovieListing, error) + func (ml *MovieListing) AudioLocale() (LOCALE, error) + func (ml *MovieListing) Streams() ([]*Stream, error) + type Season struct + AudioLocales []LOCALE + AvailabilityNotes string + ChannelID string + Description string + ID string + IsComplete bool + IsDubbed bool + IsMature bool + IsSimulcast bool + IsSubbed bool + Keywords []string + MatureBlocked bool + SeasonNumber int + SeasonTags []string + SeoDescription string + SeoTitle string + SeriesID string + SlugTitle string + SubtitleLocales []LOCALE + Title string + func SeasonFromID(crunchy *Crunchyroll, id string) (*Season, error) + func (s *Season) AudioLocale() (LOCALE, error) + func (s *Season) Episodes() (episodes []*Episode, err error) + type Series struct + AvailabilityNotes string + EpisodeCount int + ExtendedDescription string + IsDubbed bool + IsMature bool + IsSimulcast bool + IsSubbed bool + MatureBlocked bool + MatureRatings []string + PromoDescription string + PromoTitle string + SearchMetadata struct{ ... } + SeasonCount int + func SeriesFromID(crunchy *Crunchyroll, id string) (*Series, error) + func (s *Series) Seasons() (seasons []*Season, err error) + type Stream struct + AudioLocale LOCALE + HardsubLocale LOCALE + Subtitles []*Subtitle + func StreamsFromID(crunchy *Crunchyroll, id string) ([]*Stream, error) + func (s *Stream) Formats() ([]*Format, error) + type Subtitle struct + Format string + Locale LOCALE + URL string + func (s Subtitle) Save(writer io.Writer) error + type Video interface Other modules containing this package github.com/ByteDream/crunchyroll-go