From c1f64486e1574bab7bd275774a3cc3b26b8844e3 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Fri, 7 Jan 2022 12:26:17 -0600 Subject: [PATCH] Bump youtube.ts --- package.json | 2 +- src/services/get-songs.ts | 6 +++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ea24553..fd4391e 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "spotify-uri": "^2.2.0", "spotify-web-api-node": "^5.0.2", "xbytes": "^1.7.0", - "youtube.ts": "^0.2.3", + "youtube.ts": "^0.2.5", "ytdl-core": "^4.9.2", "ytsr": "^3.5.3" } diff --git a/src/services/get-songs.ts b/src/services/get-songs.ts index 55fb260..780f7ec 100644 --- a/src/services/get-songs.ts +++ b/src/services/get-songs.ts @@ -42,7 +42,7 @@ export default class { this.ytsrQueue = new PQueue({concurrency: 4}); } - async youtubeVideoSearch(query: string): Promise { + async youtubeVideoSearch(query: string): Promise { const {items} = await this.ytsrQueue.add(async () => this.cache.wrap( ytsr, query, @@ -70,7 +70,7 @@ export default class { return this.youtubeVideo(firstVideo.id); } - async youtubeVideo(url: string): Promise { + async youtubeVideo(url: string): Promise { const videoDetails = await this.cache.wrap( this.youtube.videos.get, cleanUrl(url), @@ -271,7 +271,7 @@ export default class { return [songs as QueuedSongWithoutChannel[], nSongsNotFound, originalNSongs]; } - private async spotifyToYouTube(track: SpotifyApi.TrackObjectSimplified, _: QueuedPlaylist | null): Promise { + private async spotifyToYouTube(track: SpotifyApi.TrackObjectSimplified, _: QueuedPlaylist | null): Promise { return this.youtubeVideoSearch(`"${track.name}" "${track.artists[0].name}"`); } } diff --git a/yarn.lock b/yarn.lock index bc7cb18..a25fbd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3799,10 +3799,10 @@ yocto-queue@^1.0.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251" integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g== -youtube.ts@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/youtube.ts/-/youtube.ts-0.2.3.tgz#5bfb618df4f3f31c2720eb667980e9152aae370d" - integrity sha512-KUowS4ixsIciDKo7qWAjqb+cTV37wCDQFd4YQ7Wk5nw6ZTcihCiqVfW24LKaX4kp7lH6Xj93fxVcaj78zJ/oow== +youtube.ts@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/youtube.ts/-/youtube.ts-0.2.5.tgz#392e8d037ade0287afd9373bb56cb6aa783ec5a3" + integrity sha512-C0UAVLk8NRJEw378sKkQPzjN2C3n/UpjXJbVQr498pLs2xv/yjPO/qzkHlApeR/B3rKZFgGxGBmRUsk/Ovbd4w== dependencies: axios "^0.19.0" ytdl-core "^4.9.1"