allow extractors to specify source type
This commit is contained in:
parent
9e2203ca8c
commit
160e887b64
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -92,6 +92,7 @@ export interface ExtractorModelData {
|
|||
url: string;
|
||||
version?: string;
|
||||
important?: boolean;
|
||||
source?: TrackSource;
|
||||
}
|
||||
|
||||
export interface PlayerProgressbarOptions {
|
||||
|
|
Loading…
Reference in a new issue