From 0e1192bb03981f357dfea80247e2ee2454f0ac2c Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 16 Apr 2022 19:50:02 +0200 Subject: [PATCH] Improve subscriptions count Piped API now includes it in the streams response, no need for separate query --- Model/Player/PlayerModel.swift | 6 +----- Shared/Settings/SettingsView.swift | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Model/Player/PlayerModel.swift b/Model/Player/PlayerModel.swift index cacb71de..c5279973 100644 --- a/Model/Player/PlayerModel.swift +++ b/Model/Player/PlayerModel.swift @@ -229,11 +229,7 @@ final class PlayerModel: ObservableObject { self?.sponsorBlock.loadSegments( videoID: video.videoID, categories: Defaults[.sponsorBlockCategories] - ) { - if Defaults[.showChannelSubscribers] { - self?.loadCurrentItemChannelDetails() - } - } + ) guard Defaults[.enableReturnYouTubeDislike] else { return diff --git a/Shared/Settings/SettingsView.swift b/Shared/Settings/SettingsView.swift index c6f2fd97..5a792192 100644 --- a/Shared/Settings/SettingsView.swift +++ b/Shared/Settings/SettingsView.swift @@ -179,7 +179,7 @@ struct SettingsView: View { case .browsing: return 350 case .player: - return 470 + return 450 case .history: return 480 case .sponsorBlock: