diff --git a/src/providers/base.ts b/src/providers/base.ts index 4de373a..1bb019a 100644 --- a/src/providers/base.ts +++ b/src/providers/base.ts @@ -11,6 +11,7 @@ export interface AudioInformation { metadata: { title: string | null; thumbnail: string | null; + url: string; }; refreshInfoFunction: () => Promise; } diff --git a/src/providers/yt-dlp.ts b/src/providers/yt-dlp.ts index 0340d90..884cacb 100644 --- a/src/providers/yt-dlp.ts +++ b/src/providers/yt-dlp.ts @@ -73,6 +73,7 @@ export class YtDlpProvider extends Provider { metadata: { title: ytDlpWrapInfo.title, thumbnail: bestThumbnail, + url: `https://www.youtube.com/watch?v=${ytDlpWrapInfo.id}`, }, } as AudioInformation; };