getter: Track#source

This commit is contained in:
Snowflake107 2021-05-13 11:23:18 +05:45
parent f2c458d785
commit 7753f35737

View file

@ -133,6 +133,14 @@ export class Track {
.map((m, i) => parseInt(m) * times(60, i))
.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