@jjdenhertog/plex-music-search 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +3 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Metadata } from "./types";
1
2
  import { PlexMusicSearchConfig } from "./types/PlexMusicSearchConfig";
2
3
  import { PlexMusicSearchTrack } from "./types/PlexMusicSearchTrack";
3
4
  import { PlexTrack } from "./types/PlexTrack";
@@ -9,6 +10,7 @@ export declare class PlexMusicSearch {
9
10
  search(tracks: PlexMusicSearchTrack[]): Promise<SearchResponse[]>;
10
11
  analyze(track: PlexMusicSearchTrack): Promise<SearchResponse>;
11
12
  searchAlbum(tracks: PlexMusicSearchTrack[]): Promise<SearchResponse[]>;
13
+ getMetaData(key: string): Promise<Metadata[]>;
12
14
  getById(key: string): Promise<PlexTrack>;
13
15
  private _newTrackSearch;
14
16
  private _findTrack;
package/index.js CHANGED
@@ -228,6 +228,9 @@ var PlexMusicSearch = /** @class */ (function () {
228
228
  });
229
229
  });
230
230
  };
231
+ PlexMusicSearch.prototype.getMetaData = function (key) {
232
+ return (0, getMetadata_1.getMetadata)(this._config.uri, this._config.token, key);
233
+ };
231
234
  PlexMusicSearch.prototype.getById = function (key) {
232
235
  return __awaiter(this, void 0, void 0, function () {
233
236
  var metaData, item, src;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjdenhertog/plex-music-search",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Library to find tracks in your Plex Library",
5
5
  "keywords": [
6
6
  "plex",