ytmusic_api_unofficial
Advanced tools
Comparing version 2.0.0-beta.1.6.10 to 2.0.0-beta.1.6.11
@@ -85,3 +85,8 @@ "use strict"; | ||
getRadioPlaylist() { | ||
return new Promise((resolve, reject) => { | ||
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { | ||
if (!this.radioPlaylistID || !this.radioPlaylistCode) { | ||
yield (0, request_1.default)("next", { videoId: this.id }).then((res) => { | ||
Object.assign(this, (0, utils_1.parseGetResult)(res, 'song')); | ||
}).catch(reject); | ||
} | ||
(0, request_1.default)('next', { | ||
@@ -94,3 +99,3 @@ playlistId: this.radioPlaylistID, | ||
}).catch(reject); | ||
}); | ||
})); | ||
} | ||
@@ -97,0 +102,0 @@ /** |
@@ -309,2 +309,3 @@ "use strict"; | ||
searchResult.musics = ((0, responseBuilder_1.nav)(response, ["contents"], true) || []).filter((e) => { var _a; return (_a = e.playlistPanelVideoRenderer) === null || _a === void 0 ? void 0 : _a.videoId; }).map((e) => parseSongFromFollowList(e.playlistPanelVideoRenderer)); | ||
searchResult.musics = searchResult.musics.filter((e) => e.title !== response.title); | ||
} | ||
@@ -311,0 +312,0 @@ if (["playlist"].includes(type)) { |
{ | ||
"name": "ytmusic_api_unofficial", | ||
"version": "2.0.0-beta.1.6.10", | ||
"version": "2.0.0-beta.1.6.11", | ||
"description": "A simple API to get music from YouTube Music", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
176295
2376