Fix: change movie need close proxy task

pull/194/head
zijiren233 9 months ago
parent 07e7149e86
commit 6e66f3579b

@ -428,9 +428,13 @@ func (r *Room) SetCurrentMovie(movieID string, subPath string, play bool) error
if err != ErrNoCurrentMovie {
return err
}
} else {
if currentMovie.Proxy {
_ = currentMovie.Clone()
} else {
_ = currentMovie.ClearCache()
}
}
if movieID == "" {
r.current.SetMovie(CurrentMovie{}, false)
return nil

Loading…
Cancel
Save