From 6158f58fe9fd9c668fa5577d2f3922d49379be18 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 9 Dec 2022 22:09:53 +0000 Subject: [PATCH] generate.js: add source for poljacked --- generate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.js b/generate.js index 85d4131..2b373e7 100755 --- a/generate.js +++ b/generate.js @@ -30,7 +30,7 @@ const RadioItem = function (id) { } RadioItem.new = id => new RadioItem(id) -RadioItem.prototype.setMetadata = function (title, artist, href) { objBulkSet(this, "metadata", { title, artist, href }); return this } +RadioItem.prototype.setMetadata = function (title, artist, href, extra) { objBulkSet(this, "metadata", { title, artist, href, extra }); return this } RadioItem.prototype.addTags = function (tags) { this.tags = this.tags ? [ ...(this.tags), ...tags ] : tags; return this } RadioItem.prototype.addStyleTags = function (tags) { return this.addTags(tags.map(a => `radio-media-style-${a}`)); return this } RadioItem.prototype.addSource = function (source) { this.sources.push(source); return this } @@ -174,7 +174,9 @@ const mediaItems = [ .setURI("mxc://glowers.club/mRtnfcoHYkyAOXSkYvrnbZgX") .addPreview("mxc://glowers.club/eHKVfIITgdRKERhVOPSTDQAc", "image/jpg", "432x426")), + // FIXME: Original source found, not remix source RadioItem.new("poljacked") + .setMetadata("BLACK BLADE", "Seyit Akbas", "https://youtu.be/6RnNXLZ2rfw", "1.15%, pitched up") .addSource(RadioSource.new("video/mp4") .setURI("mxc://glowers.club/stlNnyEIUVGluyhpPSGhtjJg") .addPreview("mxc://glowers.club/BczfFtojBhwMxTNjoZfhemam", "image/jpg", "638x360")