Skip to content

Commit

Permalink
deploy: 75f5407
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowsink committed Apr 25, 2024
1 parent f26e968 commit 6acc5a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions lastfm/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,11 @@
}
const res = await post({
url: `/applications/${DISCORD_APP_ID}/external-assets`,
body: JSON.stringify({ urls: [url] }),
oldFormErrors: false,
headers: {
"Content-Type": "application/json"
}
body: { urls: [url] },
oldFormErrors: false
});
if (res.ok) {
const path = JSON.parse(res.body)[0].external_asset_path;
const path = "mp:" + res.body[0].external_asset_path;
cache.set(url, path);
return path;
}
Expand Down Expand Up @@ -214,7 +211,6 @@

// plugins/lastfm/index.ts
var {
// @ts-expect-error
plugin: { store: store2 },
flux: { storesFlat, dispatcher }
} = shelter;
Expand Down
2 changes: 1 addition & 1 deletion lastfm/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Last.fm Presence","author":"Yellowsink","description":"Shows your Last.fm now listening as a presence","hash":"a7c2f783a05c554fcc0642f9182e19ef"}
{"name":"Last.fm Presence","author":"Yellowsink","description":"Shows your Last.fm now listening as a presence","hash":"1c4bcb05a77ec2e21f0d6732d2d1378e"}

0 comments on commit 6acc5a6

Please sign in to comment.