Fix typo & add audio locale todo for non-premium accounts

This commit is contained in:
bytedream 2022-05-16 22:25:33 +02:00
parent 0ffae4ddda
commit 43be2eee14

View file

@ -37,7 +37,7 @@ type Season struct {
AvailabilityNotes string `json:"availability_notes"`
// the locales are always empty, idk why this may change in the future
// the locales are always empty, idk why, this may change in the future
AudioLocales []LOCALE
SubtitleLocales []LOCALE
}
@ -71,6 +71,7 @@ func SeasonFromID(crunchy *Crunchyroll, id string) (*Season, error) {
// AudioLocale returns the audio locale of the season.
func (s *Season) AudioLocale() (LOCALE, error) {
// TODO: Add a function like Episode.Available to prevent this from returning an unwanted error when the account is non-premium
episodes, err := s.Episodes()
if err != nil {
return "", err