allow extractors to specify source type

This commit is contained in:
Snowflake107 2021-05-13 14:31:36 +05:45
parent 9e2203ca8c
commit 160e887b64
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -92,6 +92,7 @@ export interface ExtractorModelData {
url: string;
version?: string;
important?: boolean;
source?: TrackSource;
}
export interface PlayerProgressbarOptions {