diff --git a/src/Spotify.ts b/src/Spotify.ts index 4899440..c4fb545 100644 --- a/src/Spotify.ts +++ b/src/Spotify.ts @@ -99,7 +99,7 @@ export default class SpotifyFetcher extends SpotifyApi { return await this.extractPlaylist(this.getID(originalUrl)) } - getID = (url: string): string => { + getID = async (url: string): string => { const originalUrl = await this.getOriginalUrl(url) const splits = originalUrl.split('/') return splits[splits.length - 1]