forked from jon/glowers-radio
generate.js: replace item styles with addStyleTags
This commit is contained in:
parent
dcec572417
commit
b13f966eb6
@ -32,13 +32,13 @@ 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.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 }
|
||||
RadioItem.prototype.setNiggadata = function (nigid, nigkey) {
|
||||
this.setMetadata()
|
||||
this.metadata._nigid = nigid
|
||||
this.metadata._nigkey = nigkey
|
||||
this.addTags([ "niggers" ])
|
||||
//.setThumbnailType(EThumbnailType.STRETCH))
|
||||
return this
|
||||
}
|
||||
|
||||
@ -259,6 +259,7 @@ const mediaItems = [
|
||||
|
||||
RadioItem.new("jihad")
|
||||
.setMetadata("Heyaw Rijal Al Qassam", "Inshad Ensemble")
|
||||
.addStyleTags([ "artwork-box-no-shadow" ])
|
||||
.addSource(RadioSource.new("audio/mp3")
|
||||
.setURI("x-gwm://gnujihad.mp3")
|
||||
.addPreview("x-gwm://chromiumjihad.gif", "image/gif", "420x236")),
|
||||
@ -374,6 +375,7 @@ const mediaItems = [
|
||||
RadioItem.new("imposterd")
|
||||
.setMetadata("Among Us Eurobeat Remix", "maki ligon", "https://soundcloud.com/maki-ligon-deez-nutz/among-us-drip-eurobeat-remix")
|
||||
.addTags([ "sus" ])
|
||||
.addStyleTags([ "background-noblur-nobgsize", "artwork-nobox", "artwork-box-no-shadow" ])
|
||||
.addSource(RadioSource.new("audio/mp3")
|
||||
.setURI("x-gwm://include/imposterd.mp3")
|
||||
.addPreview("x-gwm://include/crewmate.gif", "image/gif", "128x108")),
|
||||
|
Loading…
Reference in New Issue
Block a user