From 5a8a1e41e93fb74756b8c88f6325b8b46d7af131 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 18 Aug 2023 13:30:12 +0600 Subject: [PATCH] fix: default to youtube API by default --- lib/collections/language_codes.dart | 8 ++++---- lib/provider/user_preferences_provider.dart | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/collections/language_codes.dart b/lib/collections/language_codes.dart index 8e3f7b43f..8209f33d8 100644 --- a/lib/collections/language_codes.dart +++ b/lib/collections/language_codes.dart @@ -512,10 +512,10 @@ abstract class LanguageLocals { // name: "Persian", // nativeName: "فارسی", // ), - // "pl": const ISOLanguageName( - // name: "Polish", - // nativeName: "polski", - // ), + "pl": const ISOLanguageName( + name: "Polish", + nativeName: "polski", + ), // "ps": const ISOLanguageName( // name: "Pashto, Pushto", // nativeName: "پښتو", diff --git a/lib/provider/user_preferences_provider.dart b/lib/provider/user_preferences_provider.dart index 2a4efae28..e1df5bfec 100644 --- a/lib/provider/user_preferences_provider.dart +++ b/lib/provider/user_preferences_provider.dart @@ -82,9 +82,9 @@ class UserPreferences extends PersistedChangeNotifier { this.showSystemTrayIcon = true, this.locale = const Locale("system", "system"), this.pipedInstance = "https://pipedapi.kavin.rocks", - this.searchMode = SearchMode.youtubeMusic, + this.searchMode = SearchMode.youtube, this.skipNonMusic = true, - this.youtubeApiType = YoutubeApiType.piped, + this.youtubeApiType = YoutubeApiType.youtube, }) : super() { if (downloadLocation.isEmpty && !kIsWeb) { _getDefaultDownloadDirectory().then( @@ -248,14 +248,14 @@ class UserPreferences extends PersistedChangeNotifier { searchMode = SearchMode.values.firstWhere( (mode) => mode.name == map["searchMode"], - orElse: () => SearchMode.youtubeMusic, + orElse: () => SearchMode.youtube, ); skipNonMusic = map["skipNonMusic"] ?? skipNonMusic; youtubeApiType = YoutubeApiType.values.firstWhere( (type) => type.name == map["youtubeApiType"], - orElse: () => YoutubeApiType.piped, + orElse: () => YoutubeApiType.youtube, ); }