Add available function to check if season streams are available

This commit is contained in:
bytedream 2022-05-18 21:47:17 +02:00
parent 43be2eee14
commit f635bf1a2e
3 changed files with 14 additions and 3 deletions

1
url.go
View file

@ -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