generate.js: add source for poljacked

This commit is contained in:
Jon 2022-12-09 22:09:53 +00:00
parent 4533fde0d2
commit 6158f58fe9

View File

@ -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")