Skip to content

Commit

Permalink
removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Olebeh committed Oct 11, 2022
1 parent c72f94d commit 0b0dbea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,6 @@ export class Queue<State extends boolean = boolean> {

await this.connection.playStream(resource, this.volume)
} else if (source === `spotify`) {
if (playdl.is_expired()) {
await playdl.refreshToken()
}

const sp_stream = await playdl.stream(await playdl.search(`${author} ${title}`, { source: { youtube: `video` } }).then(result => result[0].url), { seek: options?.seek })
const resource = this.connection.createStream(sp_stream.stream, { type: sp_stream.type, data: track })

Expand Down

0 comments on commit 0b0dbea

Please sign in to comment.