Skip to content

Commit

Permalink
fix: Fix default import usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Jan 22, 2024
1 parent 290e6ee commit 558e358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/sources/YTMusicSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export default class YTMusicSource extends AbstractSource {
if(this.apiInstance !== undefined) {
return this.apiInstance;
}
const ytm = new YouTubeMusic();
// @ts-ignore
const ytm = new YouTubeMusic.default() as YouTubeMusic;
try {
this.apiInstance = await ytm.authenticate(this.config.data.cookie, this.config.data.authUser);
} catch (e: any) {
Expand Down

0 comments on commit 558e358

Please sign in to comment.