Fix LastFM uploading errors

Not sure which of these actually made it work, will probably work backwards at some point to reverse engineer it
This commit is contained in:
mitteneer 2025-05-15 20:23:53 -04:00
parent 89e98c7a47
commit 5697f95355

View file

@ -44,34 +44,40 @@ pub const SpotifyScrobble = struct {
};
pub const LastFMWeb = struct {
track: []struct {
artist: LastFMWebHyperlinkData,
album: LastFMWebHyperlinkData,
name: []const u8,
mbid: []const u8,
image: struct {
size: []const u8,
@"#text": []const u8,
},
date: struct {
uts: []const u8,
@"#text": []const u8,
recenttracks: struct {
track: []struct {
artist: LastFMWebHyperlinkData,
album: ?LastFMWebHyperlinkData = null,
name: []const u8,
mbid: ?[]const u8 = null,
image: ?[]struct {
size: []const u8,
@"#text": []const u8,
} = null,
date: struct {
uts: []const u8,
@"#text": []const u8,
},
@"@attr": ?struct {
nowplaying: ?[]const u8 = null,
} = null,
url: ?[]const u8 = null,
},
@"@attr": LastFMWebAttr,
},
@"@attr": LastFMWebAttr,
};
pub const LastFMWebAttr = struct {
perPage: u32,
totalPages: u32,
page: u32,
user: []const u8,
total: u32,
perPage: ?[]const u8 = null,
totalPages: []const u8,
page: ?[]const u8 = null,
user: ?[]const u8 = null,
total: ?[]const u8 = null,
};
pub const LastFMWebHyperlinkData = struct {
mbid: []const u8,
@"#text": []const u8,
mbid: ?[]const u8 = null,
@"#text": ?[]const u8 = null,
};
pub const Rule = struct {