mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Improvements to pushing IA metadata
This commit is contained in:
parent
ecd290adea
commit
bed7a84cbd
2 changed files with 4 additions and 7 deletions
|
|
@ -127,7 +127,9 @@ program
|
|||
await Skins.reject(ctx, md5);
|
||||
}
|
||||
if (metadata) {
|
||||
await SyncToArchive.updateMetadata(ctx, md5);
|
||||
const skin = await SkinModel.fromMd5Assert(ctx, md5);
|
||||
await SyncToArchive.updateMetadata(skin);
|
||||
console.log("Updated Metadata");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -91,11 +91,7 @@ export async function updateMissingMetadata(
|
|||
//
|
||||
}
|
||||
|
||||
export async function updateMetadata(
|
||||
ctx: UserContext,
|
||||
md5: string
|
||||
): Promise<void> {
|
||||
const skin = await SkinModel.fromMd5Assert(ctx, md5);
|
||||
export async function updateMetadata(skin: SkinModel): Promise<void> {
|
||||
if (skin.getSkinType() !== "CLASSIC") {
|
||||
throw new Error("Only classic skins can be updated");
|
||||
}
|
||||
|
|
@ -108,7 +104,6 @@ export async function updateMetadata(
|
|||
title,
|
||||
skintype: "wsz",
|
||||
mediatype: "software",
|
||||
webamp: skin.getWebampUrl(),
|
||||
museum: skin.getMuseumUrl(),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue