Initial lastfm overhaul commit

This commit is contained in:
Core 2022-06-13 15:20:32 +01:00
parent 8a8f642fbf
commit d19f5d3c04
2 changed files with 54 additions and 0 deletions

View file

@ -56,6 +56,7 @@
"get-port": "^5.1.1", "get-port": "^5.1.1",
"jimp": "^0.16.1", "jimp": "^0.16.1",
"jsonc": "^2.0.0", "jsonc": "^2.0.0",
"lastfm-autocorrect": "^1.0.0",
"lastfmapi": "^0.1.1", "lastfmapi": "^0.1.1",
"mdns-js": "git+https://github.com/ciderapp/node-mdns-js.git", "mdns-js": "git+https://github.com/ciderapp/node-mdns-js.git",
"mpris-service": "^2.1.2", "mpris-service": "^2.1.2",

View file

@ -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 {
}
}