mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add available function to check if season streams are available
This commit is contained in:
parent
43be2eee14
commit
f635bf1a2e
3 changed files with 14 additions and 3 deletions
|
|
@ -112,8 +112,8 @@ func EpisodeFromID(crunchy *Crunchyroll, id string) (*Episode, error) {
|
|||
// Every episode in a season (should) have the same audio locale,
|
||||
// so if you want to get the audio locale of a season, just call
|
||||
// this method on the first episode of the season.
|
||||
// Will fail if no streams are available, thus use Available to
|
||||
// prevent any misleading errors.
|
||||
// Will fail if no streams are available, thus use Episode.Available
|
||||
// to prevent any misleading errors.
|
||||
func (e *Episode) AudioLocale() (LOCALE, error) {
|
||||
streams, err := e.Streams()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue