diff --git a/package.json b/package.json index 5ca5c12b..fdceb0f6 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "get-port": "^5.1.1", "jimp": "^0.16.1", "jsonc": "^2.0.0", + "lastfm-autocorrect": "^1.0.0", "lastfmapi": "^0.1.1", "mdns-js": "git+https://github.com/ciderapp/node-mdns-js.git", "mpris-service": "^2.1.2", diff --git a/src/main/plugins/lfm_new.ts b/src/main/plugins/lfm_new.ts new file mode 100644 index 00000000..72d8d422 --- /dev/null +++ b/src/main/plugins/lfm_new.ts @@ -0,0 +1,53 @@ +import * as utils from '../base/utils'; +import {app} from 'electron'; +// @ts-ignore +import LastfmAPI from 'lastfmapi'; + +// https://github.com/maxkueng/node-lastfmapi +// https://github.com/maxkueng/lastfm-autocorrect + +export default class lfm_new { + + /** + * Base Plugin Information + */ + public name: string = 'LastFM Plugin for Cider'; + public version: string = '2.0.0'; + public author: string = 'Core (Cider Collective)'; + + /** + * Private variables for interaction in plugins + */ + private _attributes: any; + private _apiCredentials = { + key: "f9986d12aab5a0fe66193c559435ede3", + secret: "acba3c29bd5973efa38cc2f0b63cc625" + } + + /** + * Plugin Initialization + */ + private _client: any = null; + private _lastfm: any = null; + private _activityCache: any = { + details: '', + state: '', + largeImageKey: '', + largeImageText: '', + smallImageKey: '', + smallImageText: '', + instance: false + }; + + constructor() { + } + + /** + * Private Methods + */ + private initializeLastFM(clientSession: string): void { + + } + + +} \ No newline at end of file