diff --git a/src/Player.ts b/src/Player.ts index d73eb6b..05c773c 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -556,7 +556,7 @@ export class Player extends EventEmitter { author: data.author, views: data.views, engine: data.engine, - source: 'arbitrary', + source: data.source ?? 'arbitrary', fromPlaylist: false, requestedBy: message.author, url: data.url diff --git a/src/types/types.ts b/src/types/types.ts index 11d48b2..bc9c541 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -92,6 +92,7 @@ export interface ExtractorModelData { url: string; version?: string; important?: boolean; + source?: TrackSource; } export interface PlayerProgressbarOptions {