mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-01-19 03:18:56 +01:00
Bump dependency
This commit is contained in:
parent
6e0d4c7927
commit
531da56dd0
|
@ -90,7 +90,7 @@
|
||||||
"spotify-web-api-node": "^5.0.2",
|
"spotify-web-api-node": "^5.0.2",
|
||||||
"sqlite3": "^5.0.2",
|
"sqlite3": "^5.0.2",
|
||||||
"unique-random-array": "^2.0.0",
|
"unique-random-array": "^2.0.0",
|
||||||
"youtube.ts": "^0.1.9",
|
"youtube.ts": "^0.2.0",
|
||||||
"ytdl-core": "^4.5.0"
|
"ytdl-core": "^4.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {toSeconds, parse} from 'iso8601-duration';
|
||||||
import got from 'got';
|
import got from 'got';
|
||||||
import spotifyURI from 'spotify-uri';
|
import spotifyURI from 'spotify-uri';
|
||||||
import Spotify from 'spotify-web-api-node';
|
import Spotify from 'spotify-web-api-node';
|
||||||
import YouTube, {YoutubePlaylistItem, YoutubePlaylistItemsSearch} from 'youtube.ts';
|
import YouTube, {YoutubePlaylistItem} from 'youtube.ts';
|
||||||
import pLimit from 'p-limit';
|
import pLimit from 'p-limit';
|
||||||
import uniqueRandomArray from 'unique-random-array';
|
import uniqueRandomArray from 'unique-random-array';
|
||||||
import {QueuedSong, QueuedPlaylist} from '../services/player';
|
import {QueuedSong, QueuedPlaylist} from '../services/player';
|
||||||
|
@ -68,9 +68,8 @@ export default class {
|
||||||
let nextToken: string | undefined;
|
let nextToken: string | undefined;
|
||||||
|
|
||||||
while (playlistVideos.length !== playlist.contentDetails.itemCount) {
|
while (playlistVideos.length !== playlist.contentDetails.itemCount) {
|
||||||
// TODO: https://github.com/Tenpi/youtube.ts/pull/7
|
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
const {items, nextPageToken} = (await this.youtube.playlists.items(listId, {maxResults: '50', pageToken: nextToken})) as YoutubePlaylistItemsSearch & {nextPageToken: string | undefined};
|
const {items, nextPageToken} = await this.youtube.playlists.items(listId, {maxResults: '50', pageToken: nextToken});
|
||||||
|
|
||||||
nextToken = nextPageToken;
|
nextToken = nextPageToken;
|
||||||
|
|
||||||
|
|
|
@ -3160,10 +3160,10 @@ yocto-queue@^0.1.0:
|
||||||
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
||||||
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|
||||||
|
|
||||||
youtube.ts@^0.1.9:
|
youtube.ts@^0.2.0:
|
||||||
version "0.1.9"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/youtube.ts/-/youtube.ts-0.1.9.tgz#a43e48f5b406e87549053ee4e6949c9a95d5da23"
|
resolved "https://registry.yarnpkg.com/youtube.ts/-/youtube.ts-0.2.0.tgz#a6cbc153bda9aa712a10098b22060877fb2995f3"
|
||||||
integrity sha512-j+U5Mhf9G0Y65fVX/hX/GSik4WJAoSFjwGQTSBGIb/mhs7OUMIJ5VL0SETK/qJ1/r06zGECnsXd5YBLNXu2Sqg==
|
integrity sha512-cRHN/7L9FO+DkdKTzvUAiB/hQo+ZtzLb4GfVywPTTtf9JBol87fqzLKf86cBWwuXLOJzJNLB/wvZmUmsxpbByQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
axios "^0.19.0"
|
axios "^0.19.0"
|
||||||
ytdl-core "^4.0.3"
|
ytdl-core "^4.0.3"
|
||||||
|
|
Loading…
Reference in a new issue