mirror of
https://github.com/yattee/yattee.git
synced 2025-04-25 16:16:29 +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
|
* Fixed issue with loading channels in Favorites with Invidious
|
||||||
* Other minor changes and improvements
|
* Other minor changes and improvements
|
||||||
|
@ -23,7 +23,7 @@ final class MPVBackend: PlayerBackend {
|
|||||||
var video: Video?
|
var video: Video?
|
||||||
var captions: Captions? { didSet {
|
var captions: Captions? { didSet {
|
||||||
guard let captions else {
|
guard let captions else {
|
||||||
client.removeSubs()
|
client?.removeSubs()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
addSubTrack(captions.url)
|
addSubTrack(captions.url)
|
||||||
@ -536,10 +536,10 @@ final class MPVBackend: PlayerBackend {
|
|||||||
|
|
||||||
func updateNetworkState() {
|
func updateNetworkState() {
|
||||||
DispatchQueue.main.async { [weak self] in
|
DispatchQueue.main.async { [weak self] in
|
||||||
guard let self else { return }
|
guard let self, let client = self.client else { return }
|
||||||
self.networkState.pausedForCache = self.client.pausedForCache
|
self.networkState.pausedForCache = client.pausedForCache
|
||||||
self.networkState.cacheDuration = self.client.cacheDuration
|
self.networkState.cacheDuration = client.cacheDuration
|
||||||
self.networkState.bufferingState = self.client.bufferingState
|
self.networkState.bufferingState = client.bufferingState
|
||||||
}
|
}
|
||||||
|
|
||||||
if !networkState.needsUpdates {
|
if !networkState.needsUpdates {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user