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:
parent
89e98c7a47
commit
5697f95355
1 changed files with 26 additions and 20 deletions
|
|
@ -44,34 +44,40 @@ pub const SpotifyScrobble = struct {
|
|||
};
|
||||
|
||||
pub const LastFMWeb = struct {
|
||||
recenttracks: struct {
|
||||
track: []struct {
|
||||
artist: LastFMWebHyperlinkData,
|
||||
album: LastFMWebHyperlinkData,
|
||||
album: ?LastFMWebHyperlinkData = null,
|
||||
name: []const u8,
|
||||
mbid: []const u8,
|
||||
image: struct {
|
||||
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,
|
||||
},
|
||||
};
|
||||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue