diff src/core/config.cc @ 413:192da585a0a8 default tip

*: fix formatting the clang-format file was broken andjust using LLVM defaults. now it's fixed and is more in line with what I actually prefer my code to look like -- esp. with regards to tabulators
author Paper <paper@tflc.us>
date Sat, 25 Jul 2026 14:54:32 -0400
parents 963047512d34
children
line wrap: on
line diff
--- a/src/core/config.cc	Sat Jul 25 14:33:03 2026 -0400
+++ b/src/core/config.cc	Sat Jul 25 14:54:32 2026 -0400
@@ -50,24 +50,24 @@
 	anime_list.language = Translate::ToLanguage(toml::find_or(data, "Anime List", "Title language", "Romaji"));
 	anime_list.display_aired_episodes = toml::find_or(data, "Anime List", "Display only aired episodes", true);
 	anime_list.display_available_episodes =
-	    toml::find_or(data, "Anime List", "Display only available episodes in library", true);
+		toml::find_or(data, "Anime List", "Display only available episodes in library", true);
 	anime_list.highlight_anime_if_available = toml::find_or(data, "Anime List", "Highlight anime if available", true);
 	anime_list.highlighted_anime_above_others =
-	    (anime_list.highlight_anime_if_available)
-	        ? toml::find_or(data, "Anime List", "Display highlighted anime above others", false)
-	        : false;
+		(anime_list.highlight_anime_if_available)
+			? toml::find_or(data, "Anime List", "Display highlighted anime above others", false)
+			: false;
 
 	auth.anilist.auth_token = toml::find_or(data, "Authentication/AniList", "Auth Token", "");
 	auth.anilist.user_id = toml::find_or(data, "Authentication/AniList", "User ID", 0);
 
 	auth.kitsu.access_token = toml::find_or(data, "Authentication/Kitsu", "Access Token", "");
 	auth.kitsu.access_token_expiration =
-	    toml::find_or(data, "Authentication/Kitsu", "Access Token Expiration", static_cast<Time::Timestamp>(0));
+		toml::find_or(data, "Authentication/Kitsu", "Access Token Expiration", static_cast<Time::Timestamp>(0));
 	auth.kitsu.refresh_token = toml::find_or(data, "Authentication/Kitsu", "Refresh Token", "");
 	auth.kitsu.user_id = toml::find_or(data, "Authentication/Kitsu", "User ID", "");
 
 	torrents.feed_link =
-	    toml::find_or(data, "Torrents", "RSS feed", "https://www.tokyotosho.info/rss.php?filter=1,11&zwnj=0");
+		toml::find_or(data, "Torrents", "RSS feed", "https://www.tokyotosho.info/rss.php?filter=1,11&zwnj=0");
 
 	recognition.detect_media_players = toml::find_or(data, "Recognition", "Detect media players", true);
 
@@ -132,7 +132,7 @@
 
 	for (const auto &[enabled, player] : recognition.players) {
 		const std::string section =
-		    (player.type == animone::PlayerType::WebBrowser) ? "Recognition/Players" : "Recognition/Browsers";
+			(player.type == animone::PlayerType::WebBrowser) ? "Recognition/Players" : "Recognition/Browsers";
 		data[section][player.name] = enabled;
 	}