From 988014a8678c401ae94abfa0cedbc46a28d41ee6 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 19 Jan 2023 06:40:26 +0000 Subject: [PATCH] generate.js: add tour, oppanmachine --- generate.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/generate.js b/generate.js index 9555437..3d1ca24 100755 --- a/generate.js +++ b/generate.js @@ -421,7 +421,8 @@ const BMetadataType = { "EXPLICIT": 0b100000, "PREFERED": 0b1000000, "PSEUDONYM": 0b10000000, - "UNAVAILABLE": 0b100000000 + "UNAVAILABLE": 0b100000000, + "PREMIUM": 0b1000000000 } for (const key in BMetadataType) { @@ -1592,6 +1593,26 @@ const mediaItems = [ .setURI("mxc://glowers.club/wtsFmPEzerDPdzOSQraBzupN") .addPreview("mxc://glowers.club/UPPtHMbKXrEaeHLDYovVkZRt", "image/jpg", "440x440")), + RadioItem.new("tour") + .addItemInfo(RadioMetadata.newLAV("Macky Gee - Tour N Remix", "jaycrusader", RadioMetadata.createSoundcloudURI("macky-gee-tour-n-remix", "user-118096317")).bOfficial()) + .addItemInfo(RadioMetadata.newLA("Tour", "Macky Gee", RadioMetadata.createYouTubeURI("9X4iXYqxlPA")).setFor(0).bOriginal().bOfficial()) + .addItemInfo(RadioMetadata.newLA(null, null, RadioMetadata.createAppleMusicURI(1282939530)).setFor(0).bOriginal().bOfficial().bAlt()) + .addSource(RadioSource.new("audio/mp3", [ "mp3" ]) + .setURI("mxc://glowers.club/WSJRsjEvcJraVfPDiqkrLpjm") + .addPreview("mxc://glowers.club/iKjuRXQirdBJZXJOoNIeBVtm", "video/mp4", [ "avc1.4D4029" ], "500x500", EDisplayType.SQUARE) + .addPreview("mxc://glowers.club/wEaDeptGTTtlhzdyVsogJjHa", "image/gif", "250x250", EDisplayType.SQUARE)), + + RadioItem.new("oppanmachine") + .addItemInfo(RadioMetadata.newLAV("Porter Robinson - Oppan Sad Machine", "응과사전, Shittypedia - Free Shit Encyclopedia", RadioMetadata.createSoundcloudURI("porter-robinson-oppan-sad-machine", "shittypedia")).bOfficial()) + .addItemInfo(RadioMetadata.newLA("Sad Machine", "Porter Robinson", RadioMetadata.createYouTubeURI("HAIDqt2aUek")).setFor(0).bOriginal().bOfficial()) + .addItemInfo(RadioMetadata.newLA(null, null, RadioMetadata.createAppleMusicURI(1440858256)).setFor(0).bOriginal().bOfficial().bAlt()) + .addItemInfo(RadioMetadata.newLA(null, null, RadioMetadata.createSoundcloudURI("sad-machine", "porter-robinson")).setFor(0).bOriginal().bOfficial().bAlt().bPremium()) + .addItemInfo(RadioMetadata.newLA("Gangnam Style", "PSY", RadioMetadata.createYouTubeURI("9bZkp7q19f0")).setFor(1).bOriginal().bOfficial()) + .addItemInfo(RadioMetadata.newLA(null, null, RadioMetadata.createAppleMusicURI(1445144527)).setFor(1).bOriginal().bOfficial().bAlt()) + .addSource(RadioSource.new("audio/mp3", [ "mp3" ]) + .setURI("mxc://glowers.club/kXlzwGxKEisLOloneSSSDcjr") + .addPreview("mxc://glowers.club/QlWvAoOFKvkoSpMTfJkGeozg", "image/jpg", "500x500")), + ].filter(Boolean).map((a,i) => a.serialize(i)).sort((a,b) => a.id.localeCompare(b.id)) const lintCodecWarnings = {