Moved tags to song instead of on playing song

This commit is contained in:
Torben Pi Jensen
2026-05-09 11:23:46 +02:00
parent 5211a4a976
commit 9b4103a8b2
3 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -22,11 +22,12 @@ var SongType;
SongType[SongType["Spotify"] = 1] = "Spotify";
})(SongType || (exports.SongType = SongType = {}));
var Song = /** @class */ (function () {
function Song(type, title, songId, image, inAutoPlay) {
function Song(type, title, songId, image, tags, inAutoPlay) {
this.type = type;
this.title = title;
this.songId = songId;
this.image = image;
this.tags = tags;
this.inAutoPlay = inAutoPlay;
}
return Song;
@@ -34,8 +35,8 @@ var Song = /** @class */ (function () {
exports.Song = Song;
var QueuedSong = /** @class */ (function (_super) {
__extends(QueuedSong, _super);
function QueuedSong(type, title, songId, image, listener, inAutoPlay) {
var _this = _super.call(this, type, title, songId, image, inAutoPlay) || this;
function QueuedSong(type, title, songId, image, tags, listener, inAutoPlay) {
var _this = _super.call(this, type, title, songId, image, tags, inAutoPlay) || this;
_this.listener = listener;
_this.inAutoPlay = inAutoPlay;
return _this;
@@ -45,11 +46,10 @@ var QueuedSong = /** @class */ (function (_super) {
exports.QueuedSong = QueuedSong;
var PlayingSong = /** @class */ (function (_super) {
__extends(PlayingSong, _super);
function PlayingSong(type, title, songId, image, listener, length, position, tags, inAutoPlay) {
var _this = _super.call(this, type, title, songId, image, listener, inAutoPlay) || this;
function PlayingSong(type, title, songId, image, tags, listener, length, position, inAutoPlay) {
var _this = _super.call(this, type, title, songId, image, tags, listener, inAutoPlay) || this;
_this.length = length;
_this.position = position;
_this.tags = tags;
_this.inAutoPlay = inAutoPlay;
return _this;
}