Fix null albums

We're so back
This commit is contained in:
mitteneer 2025-02-18 16:27:24 -05:00
parent 4f051170e5
commit a2aa946b3b
3 changed files with 9 additions and 10 deletions

View file

@ -1,7 +1,7 @@
pub const LastFMScrobble = struct {
track: []const u8,
artist: []const u8,
album: ?[]const u8,
album: ?[]const u8 = "",
date: i128,
};
@ -13,7 +13,7 @@ pub const SafeLastFMScrobble = struct {
};
// From lastfmstats.com
pub const LastFM = struct { username: []u8, scrobbles: []LastFMScrobble };
pub const LastFM = struct { username: []const u8, scrobbles: []LastFMScrobble };
pub const SpotifyScrobble = struct {
ts: []u8,