Skip to content

Commit

Permalink
Merge pull request #1201 from museofficial/dependencies/ytdl-core/upg…
Browse files Browse the repository at this point in the history
…rade/4-15-9

Add updates to changelog to permit a new release
  • Loading branch information
JoeWHoward authored Jan 29, 2025
2 parents be53c46 + 3e0d10a commit 92c6de5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Remove Spotify requirement
- Dependency update

## [2.10.0] - 2024-11-04
- New `/config set-reduce-vol-when-voice` command to automatically turn down the volume when people are speaking in the channel
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"ora": "^8.1.0",
"p-event": "^5.0.1",
"p-limit": "^6.1.0",
"p-queue": "7.1.0",
"p-queue": "8.1.0",
"p-retry": "6.2.0",
"pagination.djs": "^4.0.10",
"parse-duration": "1.0.2",
Expand Down
8 changes: 6 additions & 2 deletions src/services/youtube-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class {
}

async search(query: string, shouldSplitChapters: boolean): Promise<SongMetadata[]> {
const {items} = await this.ytsrQueue.add(async () => this.cache.wrap(
const result = await this.ytsrQueue.add<ytsr.VideoResult>(async () => this.cache.wrap(
ytsr,
query,
{
Expand All @@ -85,9 +85,13 @@ export default class {
},
));

if (result === undefined) {
return [];
}

let firstVideo: Video | undefined;

for (const item of items) {
for (const item of result.items) {
if (item.type === 'video') {
firstVideo = item;
break;
Expand Down
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2024,10 +2024,10 @@ esutils@^2.0.2:
resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==

eventemitter3@^4.0.7:
version "4.0.7"
resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz"
integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==
eventemitter3@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4"
integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==

[email protected]:
version "5.1.1"
Expand Down Expand Up @@ -3837,13 +3837,13 @@ p-locate@^5.0.0:
dependencies:
p-limit "^3.0.2"

p-queue@7.1.0:
version "7.1.0"
resolved "https://registry.npmjs.org/p-queue/-/p-queue-7.1.0.tgz"
integrity sha512-V+0vPJbhYkBqknPp0qnaz+dWcj8cNepfXZcsVIVEHPbFQXMPwrzCNIiM4FoxGtwHXtPzVCPHDvqCr1YrOJX2Gw==
p-queue@8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-8.1.0.tgz#d71929249868b10b16f885d8a82beeaf35d32279"
integrity sha512-mxLDbbGIBEXTJL0zEx8JIylaj3xQ7Z/7eEVjcF9fJX4DBiH9oqe+oahYnlKKxm0Ci9TlWTyhSHgygxMxjIB2jw==
dependencies:
eventemitter3 "^4.0.7"
p-timeout "^5.0.0"
eventemitter3 "^5.0.1"
p-timeout "^6.1.2"

[email protected]:
version "6.2.0"
Expand All @@ -3854,16 +3854,16 @@ [email protected]:
is-network-error "^1.0.0"
retry "^0.13.1"

p-timeout@^5.0.0:
version "5.1.0"
resolved "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz"
integrity sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==

p-timeout@^5.0.2:
version "5.0.2"
resolved "https://registry.npmjs.org/p-timeout/-/p-timeout-5.0.2.tgz"
integrity sha512-sEmji9Yaq+Tw+STwsGAE56hf7gMy9p0tQfJojIAamB7WHJYJKf1qlsg9jqBWG8q9VCxKPhZaP/AcXwEoBcYQhQ==

p-timeout@^6.1.2:
version "6.1.4"
resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-6.1.4.tgz#418e1f4dd833fa96a2e3f532547dd2abdb08dbc2"
integrity sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==

pac-proxy-agent@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz"
Expand Down

0 comments on commit 92c6de5

Please sign in to comment.