20 lines
533 B
TypeScript
20 lines
533 B
TypeScript
import { definePlugin } from "@sttracker/plugin-sdk/types";
|
|
import { pull, pullChanges } from "./src/lastfm.ts";
|
|
|
|
export default definePlugin({
|
|
manifest: {
|
|
id: "lastfm",
|
|
name: "Last.fm",
|
|
version: "0.1.0",
|
|
sdkVersion: 1,
|
|
mediaTypes: ["track", "album", "artist"],
|
|
capabilities: ["pull", "pullChanges"],
|
|
config: [
|
|
{ key: "username", label: "Username", type: "string", required: true },
|
|
{ key: "apiKey", label: "API key", type: "secret", required: true },
|
|
],
|
|
},
|
|
pull,
|
|
pullChanges,
|
|
});
|