feat: live TV channel favorites

close #663
This commit is contained in:
edde746
2026-03-15 07:44:44 +01:00
parent 79888168ae
commit 5f18efcfb3
39 changed files with 603 additions and 71 deletions
+9
View File
@@ -95,6 +95,7 @@ class SettingsService extends BaseSharedPreferencesService {
static const String _keyAudioPassthrough = 'audio_passthrough';
static const String _keyAudioNormalization = 'audio_normalization';
static const String _keyCustomShaderPresets = 'custom_shader_presets';
static const String _keyLiveTvDefaultFavorites = 'live_tv_default_favorites';
SettingsService._();
@@ -1180,6 +1181,14 @@ class SettingsService extends BaseSharedPreferencesService {
return prefs.getBool(_keyShowNavBarLabels) ?? true; // Default: show labels
}
Future<void> setLiveTvDefaultFavorites(bool enabled) async {
await prefs.setBool(_keyLiveTvDefaultFavorites, enabled);
}
bool getLiveTvDefaultFavorites() {
return prefs.getBool(_keyLiveTvDefaultFavorites) ?? false;
}
// Global Shader Preset (for MPV video enhancement)
Future<void> setGlobalShaderPreset(String presetId) async {
await prefs.setString(_keyGlobalShaderPreset, presetId);