mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Minor fixes
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user