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 {
|
pub const LastFMWeb = struct {
|
||||||
track: []struct {
|
recenttracks: struct {
|
||||||
artist: LastFMWebHyperlinkData,
|
track: []struct {
|
||||||
album: LastFMWebHyperlinkData,
|
artist: LastFMWebHyperlinkData,
|
||||||
name: []const u8,
|
album: ?LastFMWebHyperlinkData = null,
|
||||||
mbid: []const u8,
|
name: []const u8,
|
||||||
image: struct {
|
mbid: ?[]const u8 = null,
|
||||||
size: []const u8,
|
image: ?[]struct {
|
||||||
@"#text": []const u8,
|
size: []const u8,
|
||||||
},
|
@"#text": []const u8,
|
||||||
date: struct {
|
} = null,
|
||||||
uts: []const u8,
|
date: struct {
|
||||||
@"#text": []const u8,
|
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 {
|
pub const LastFMWebAttr = struct {
|
||||||
perPage: u32,
|
perPage: ?[]const u8 = null,
|
||||||
totalPages: u32,
|
totalPages: []const u8,
|
||||||
page: u32,
|
page: ?[]const u8 = null,
|
||||||
user: []const u8,
|
user: ?[]const u8 = null,
|
||||||
total: u32,
|
total: ?[]const u8 = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const LastFMWebHyperlinkData = struct {
|
pub const LastFMWebHyperlinkData = struct {
|
||||||
mbid: []const u8,
|
mbid: ?[]const u8 = null,
|
||||||
@"#text": []const u8,
|
@"#text": ?[]const u8 = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Rule = struct {
|
pub const Rule = struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue