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,
|
author: data.author,
|
||||||
views: data.views,
|
views: data.views,
|
||||||
engine: data.engine,
|
engine: data.engine,
|
||||||
source: 'arbitrary',
|
source: data.source ?? 'arbitrary',
|
||||||
fromPlaylist: false,
|
fromPlaylist: false,
|
||||||
requestedBy: message.author,
|
requestedBy: message.author,
|
||||||
url: data.url
|
url: data.url
|
||||||
|
|
|
@ -92,6 +92,7 @@ export interface ExtractorModelData {
|
||||||
url: string;
|
url: string;
|
||||||
version?: string;
|
version?: string;
|
||||||
important?: boolean;
|
important?: boolean;
|
||||||
|
source?: TrackSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PlayerProgressbarOptions {
|
export interface PlayerProgressbarOptions {
|
||||||
|
|
Loading…
Reference in a new issue