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 episode streams are available
This commit is contained in:
parent
6c476df24e
commit
0ffae4ddda
3 changed files with 15 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ func SortEpisodesByAudio(episodes []*crunchyroll.Episode) (map[crunchyroll.LOCAL
|
|||
var wg sync.WaitGroup
|
||||
var lock sync.Mutex
|
||||
for _, episode := range episodes {
|
||||
if !episode.Available() {
|
||||
continue
|
||||
}
|
||||
episode := episode
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue