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
1
url.go
1
url.go
|
|
@ -21,6 +21,7 @@ func (c *Crunchyroll) ExtractEpisodesFromUrl(url string, audio ...LOCALE) ([]*Ep
|
|||
}
|
||||
for _, season := range seasons {
|
||||
if audio != nil {
|
||||
|
||||
locale, err := season.AudioLocale()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue