Skip to content

Commit

Permalink
fix: now getStreamURL returns a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
titsex committed Sep 17, 2024
1 parent 2f83e94 commit 5eceebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class VKMusicPlugin extends PlayableExtractorPlugin {
return songs.map((song) => new VKMusicPluginSong(this, song))
}

getStreamURL<T>(song: VKMusicPluginSong<T>) {
async getStreamURL<T>(song: VKMusicPluginSong<T>) {
if (!song.streamUrl) {
throw new DisTubeError(
VK_MUSIC_PLUGIN_SOURCE,
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('test plugin', async () => {
streamUrl,
} as VKMusicPluginSong<unknown>

const response = plugin.getStreamURL(song)
const response = await plugin.getStreamURL(song)

expect(response).toEqual(streamUrl)
})
Expand Down

0 comments on commit 5eceebd

Please sign in to comment.