Versions in this module Expand all Collapse all v3 v3.0.4 Oct 20, 2022 Changes in this version + func ParseSeriesURL(url string) (seasonId string, ok bool) v3.0.3 Oct 3, 2022 Changes in this version + const CN v3.0.2 Sep 3, 2022 Changes in this version + const ME v3.0.1 Aug 21, 2022 Changes in this version + const LA2 v3.0.0 Aug 14, 2022 Changes in this version + const AR + const BR + const BrowseSortAlphabetical + const BrowseSortNewlyAdded + const BrowseSortPopularity + const DE + const ES + const FR + const FiveStars + const FourStars + const IT + const JP + const LA + const OneStar + const PT + const RU + const ReviewSortHelpful + const ReviewSortNewest + const ReviewSortOldest + const ThreeStars + const TwoStars + const US + const WatchlistEntryEpisode + const WatchlistEntrySeries + const WatchlistOrderAsc + const WatchlistOrderDesc + 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 Account struct + AccountID string + Avatar string + CrBetaOptIn bool + Created time.Time + Email string + EmailVerified bool + ExternalID string + MatureContentFlagManga string + MaturityRating string + OptOutAndroidInAppMarketing bool + OptOutFreeTrials bool + OptOutNewMediaQueueUpdates bool + OptOutNewsletters bool + OptOutPmUpdates bool + OptOutPromotionalUpdates bool + OptOutQueueUpdates bool + OptOutStoreDeals bool + PreferredCommunicationLanguage LOCALE + PreferredContentSubtitleLanguage LOCALE + QaUser bool + Username string + Wallpaper *Wallpaper + func (a *Account) AvailableWallpapers() (w []*Wallpaper, err error) + func (a *Account) ChangeEmail(currentPassword, newEmail string) error + func (a *Account) ChangePassword(currentPassword, newPassword string) error + func (a *Account) ChangeWallpaper(wallpaper *Wallpaper) error + func (a *Account) UpdateMatureMangaContent(enabled bool) error + func (a *Account) UpdateMatureVideoContent(enabled bool) error + func (a *Account) UpdatePreferredEmailLanguage(language LOCALE) error + func (a *Account) UpdatePreferredVideoSubtitleLanguage(language LOCALE) error + type BrowseOptions struct + Categories []string + IsDubbed bool + IsSubbed bool + Simulcast string + Sort BrowseSortType + Start uint + Type MediaType + type BrowseSortType string + type BulkResult struct + Items []T + Total int + type Category struct + Category string + Images struct{ ... } + Localization struct{ ... } + Slug string + SubCategories []struct{ ... } + type Comment struct + CommentID string + Created time.Time + DeleteReason any + DomainID string + EpisodeID string + Flags []string + GuestbookKey string + IsOwner bool + Locale LOCALE + Message string + Modified time.Time + ParentCommentID int + RepliesCount int + User struct{ ... } + UserVotes []string + Votes struct{ ... } + func (c *Comment) Delete() error + func (c *Comment) FlagAsSpoiler() error + func (c *Comment) IsFlaggedAsSpoiler() bool + func (c *Comment) IsReported() bool + func (c *Comment) IsSpoiler() bool + func (c *Comment) Like() error + func (c *Comment) Liked() bool + func (c *Comment) MarkAsSpoiler() error + func (c *Comment) RemoveLike() error + func (c *Comment) RemoveReport() error + func (c *Comment) Replies(page uint, size uint) ([]*Comment, error) + func (c *Comment) Reply(message string, spoiler bool) (*Comment, error) + func (c *Comment) Report() error + func (c *Comment) UnflagAsSpoiler() error + func (c *Comment) UnmarkAsSpoiler() error + type CommentsOptions struct + Order CommentsOrderType + Sort CommentsSortType + type CommentsOrderType string + const CommentsOrderAsc + const CommentsOrderDesc + type CommentsSortType string + const CommentsSortDate + const CommentsSortPopular + type Crunchylist struct + ID string + IsPublic bool + Items []*CrunchylistItem + Max int + ModifiedAt time.Time + Title string + Total int + func (cl *Crunchylist) AddSeries(series *Series) error + func (cl *Crunchylist) AddSeriesFromID(id string) error + func (cl *Crunchylist) Delete() error + func (cl *Crunchylist) RemoveSeries(series *Series) error + func (cl *Crunchylist) RemoveSeriesFromID(id string) error + func (cl *Crunchylist) Rename(name string) error + type CrunchylistItem struct + ID string + ListID string + ModifiedAt time.Time + Panel Panel + func (cli *CrunchylistItem) Remove() error + type CrunchylistPreview struct + IsPublic bool + ListID string + ModifiedAt time.Time + Title string + Total int + func (clp *CrunchylistPreview) Crunchylist() (*Crunchylist, error) + type Crunchylists struct + Items []*CrunchylistPreview + MaxPrivate int + TotalPrivate int + TotalPublic int + func (cl *Crunchylists) Create(name string) (*Crunchylist, error) + type Crunchyroll struct + Client *http.Client + Config struct{ ... } + Context context.Context + Locale LOCALE + RefreshToken string + func LoginWithCredentials(user string, password string, locale LOCALE, client *http.Client) (*Crunchyroll, error) + func LoginWithRefreshToken(refreshToken string, locale LOCALE, client *http.Client) (*Crunchyroll, error) + func LoginWithSessionID(sessionID string, locale LOCALE, client *http.Client) (*Crunchyroll, error) + func (c *Crunchyroll) Account() (*Account, error) + func (c *Crunchyroll) Browse(options BrowseOptions, limit uint) (s []*Series, m []*Movie, err error) + func (c *Crunchyroll) Categories(includeSubcategories bool) (ca []*Category, err error) + func (c *Crunchyroll) Crunchylists() (*Crunchylists, 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) InvalidateSession() error + func (c *Crunchyroll) IsCaching() bool + func (c *Crunchyroll) News(topLimit uint, latestLimit uint) (t []*News, l []*News, err error) + func (c *Crunchyroll) ParseUrl(url string) (*Series, []*Episode, error) + func (c *Crunchyroll) Recommendations(limit uint) (s []*Series, m []*Movie, err error) + func (c *Crunchyroll) Search(query string, limit uint) (s []*Series, m []*Movie, err error) + func (c *Crunchyroll) SetCaching(caching bool) + func (c *Crunchyroll) Simulcasts() (s []*Simulcast, err error) + func (c *Crunchyroll) UpNext(limit uint) (e []*Episode, err error) + func (c *Crunchyroll) WatchHistory(page uint, size uint) (e []*HistoryEpisode, err error) + func (c *Crunchyroll) Watchlist(options WatchlistOptions, limit uint) ([]*WatchlistEntry, error) + 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 + FreeAvailableDate time.Time + HDFlag bool + ID string + Images struct{ ... } + IsClip bool + IsDubbed bool + IsMature bool + IsPremiumOnly bool + IsSubbed bool + ListingID string + MatureBlocked bool + MaturityRatings []string + MediaType MediaType + NextEpisodeID string + NextEpisodeTitle string + Playback string + PremiumAvailableDate time.Time + 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) AddToWatchlist() error + func (e *Episode) AudioLocale() (LOCALE, error) + func (e *Episode) Available() bool + func (e *Episode) Comment(message string, spoiler bool) (*Comment, error) + func (e *Episode) Comments(options CommentsOptions, page uint, size uint) (c []*Comment, err error) + func (e *Episode) GetFormat(resolution string, subtitle LOCALE, hardsub bool) (*Format, error) + func (e *Episode) RemoveFromWatchlist() 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 HistoryEpisode struct + DatePlayed time.Time + FullyWatched bool + ParentID string + ParentType MediaType + Playhead uint + type Image struct + Height int + Source string + Type string + Width int + type LOCALE string + type MediaType string + const MediaTypeMovie + const MediaTypeSeries + 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 News struct + Creator string + Description string + Image string + Link string + PublishDate string + Title string + type OwnerReview struct + func (or *OwnerReview) Delete() error + func (or *OwnerReview) Edit(title, content string, spoiler bool) error + type Panel struct + ChannelID string + Description string + EpisodeMetadata *Episode + ExternalID string + ID string + Images struct{ ... } + Playback string + PromoDescription string + PromoTitle string + SeriesMetadata *Series + Slug string + SlugTitle string + Title string + Type WatchlistEntryType + type Rating struct + Average string + FiveStars ratingStar + FourStars ratingStar + OneStar ratingStar + Rating string + ThreeStars ratingStar + Total int + TwoStars ratingStar + type RequestError struct + Message string + Response *http.Response + func (re *RequestError) Error() string + type Review interface + type ReviewOptions struct + Filter ReviewRating + Sort ReviewSortType + type ReviewRating string + type ReviewSortType string + 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) Available() (bool, 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) AddToWatchlist() error + func (s *Series) CreateReview(title, content string, spoiler bool) (*OwnerReview, error) + func (s *Series) GetOwnerReview() (*OwnerReview, error) + func (s *Series) HasOwnerReview() bool + func (s *Series) Rate(rating ReviewRating) error + func (s *Series) Rating() (*Rating, error) + func (s *Series) RemoveFromWatchlist() error + func (s *Series) Reviews(options ReviewOptions, page uint, size uint) (BulkResult[*UserReview], error) + func (s *Series) Seasons() (seasons []*Season, err error) + func (s *Series) Similar(limit uint) (ss []*Series, m []*Movie, err error) + type Simulcast struct + ID string + Localization struct{ ... } + 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 UserReview struct + func (ur *UserReview) RateHelpful() error + func (ur *UserReview) RateNotHelpful() error + func (ur *UserReview) Rated() bool + func (ur *UserReview) RemoveReport() error + func (ur *UserReview) Report() error + type Video interface + type Wallpaper string + func (w *Wallpaper) BigUrl() string + func (w *Wallpaper) TinyUrl() string + type WatchlistEntry struct + CompleteStatus bool + IsFavorite bool + NeverWatched bool + New bool + NewContent bool + Panel Panel + Playahead uint + type WatchlistEntryType string + type WatchlistLanguageType int + const WatchlistLanguageDubbed + const WatchlistLanguageSubbed + type WatchlistOptions struct + ContentType MediaType + LanguageType WatchlistLanguageType + OnlyFavorites bool + Order WatchlistOrderType + type WatchlistOrderType string