@jjdenhertog/plex-music-search 1.0.3 → 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.
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/package.json +2 -2
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.
|
3
|
+
"version": "1.0.5",
|
4
4
|
"description": "Library to find tracks in your Plex Library",
|
5
5
|
"keywords": [
|
6
6
|
"plex",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"npm": ">=10.0.0"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@jjdenhertog/music-search": "^1.0.
|
21
|
+
"@jjdenhertog/music-search": "^1.0.7",
|
22
22
|
"axios": "^1.4.0",
|
23
23
|
"qs": "^6.12.0",
|
24
24
|
"string-similarity-js": "^2.1.4"
|