fix: Fix default import usage

This commit is contained in:
FoxxMD
2024-01-22 13:25:31 -05:00
parent 290e6eecc4
commit 558e358d0b
+2 -1
View File
@@ -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) {