mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fix typo & add audio locale todo for non-premium accounts
This commit is contained in:
parent
0ffae4ddda
commit
43be2eee14
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue