FreeBSD works now

This commit is contained in:
Mars 2024-08-29 17:58:42 -04:00
parent 08f0637584
commit b1bbc19d62
4 changed files with 127 additions and 3 deletions

View file

@ -80,8 +80,12 @@ fn main() -> i32 {
if (weather.enabled)
fmt::println("It is {}°F in {}", std::lround(weatherInfo.main.temp), weatherInfo.name);
if (nowPlayingEnabled)
fmt::println("{}", GetNowPlaying());
if (nowPlayingEnabled) {
const string nowPlaying = GetNowPlaying();
if (!nowPlaying.empty())
fmt::println("{}", nowPlaying);
else fmt::println("No song playing");
}
return 0;
}