mirror of
https://github.com/yattee/yattee.git
synced 2024-11-09 15:58:20 +00:00
Minor fixes
This commit is contained in:
parent
35d20763fb
commit
8ca499756a
@ -1,4 +1,4 @@
|
||||
## Build 133
|
||||
## Build 136
|
||||
|
||||
* Fixed issue with loading channels in Favorites with Invidious
|
||||
* Other minor changes and improvements
|
||||
|
@ -23,7 +23,7 @@ final class MPVBackend: PlayerBackend {
|
||||
var video: Video?
|
||||
var captions: Captions? { didSet {
|
||||
guard let captions else {
|
||||
client.removeSubs()
|
||||
client?.removeSubs()
|
||||
return
|
||||
}
|
||||
addSubTrack(captions.url)
|
||||
@ -536,10 +536,10 @@ final class MPVBackend: PlayerBackend {
|
||||
|
||||
func updateNetworkState() {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self else { return }
|
||||
self.networkState.pausedForCache = self.client.pausedForCache
|
||||
self.networkState.cacheDuration = self.client.cacheDuration
|
||||
self.networkState.bufferingState = self.client.bufferingState
|
||||
guard let self, let client = self.client else { return }
|
||||
self.networkState.pausedForCache = client.pausedForCache
|
||||
self.networkState.cacheDuration = client.cacheDuration
|
||||
self.networkState.bufferingState = client.bufferingState
|
||||
}
|
||||
|
||||
if !networkState.needsUpdates {
|
||||
|
Loading…
Reference in New Issue
Block a user