getter: Track#source
This commit is contained in:
parent
f2c458d785
commit
7753f35737
1 changed files with 8 additions and 0 deletions
|
@ -134,6 +134,14 @@ export class Track {
|
||||||
.reduce((a, c) => a + c, 0);
|
.reduce((a, c) => a + c, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns source of this track
|
||||||
|
* @type {TrackSource}
|
||||||
|
*/
|
||||||
|
get source() {
|
||||||
|
return this.raw.source ?? 'arbitrary';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String representation of this track
|
* String representation of this track
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
|
|
Loading…
Reference in a new issue