2022-11-12 23:08:28 -05:00
# glowers-radio
This repo contains backing information for Glowers Radio.
## Format
2022-11-12 23:10:11 -05:00
The `songs.json` format **is only intended for use for Glowers Radio** , and is effectively a living standard as a result. **Live data may change drastically without warning**
2022-11-12 23:08:28 -05:00
2022-12-07 19:29:16 -05:00
If you do wish to use this data for your own purposes, i.e: to make a custom player, you should be caching the songs list so your application has something to fallback to if a breaking change to the format is made.
2022-11-12 23:08:28 -05:00
```yaml
2022-12-07 19:29:16 -05:00
required: [ version, songs ]
2022-12-09 15:12:03 -05:00
$defs:
GWRadioURI:
type: uri
description: 'A URI that points to the source file. See `GWMediaPlayer.fromURIToAbsolute()` for how to convert to a URL'
2022-11-12 23:08:28 -05:00
properties:
2022-11-16 05:47:46 -05:00
version: { type: integer }
songs:
2022-11-12 23:08:28 -05:00
items:
2022-11-16 05:47:46 -05:00
required: [ id, sources ]
2022-11-12 23:08:28 -05:00
properties:
2022-11-16 05:47:46 -05:00
id:
type: string
tags:
2022-12-09 15:12:03 -05:00
description: 'A list of tags used for filtering.'
2022-11-16 05:47:46 -05:00
type: array
2022-12-09 15:12:03 -05:00
items:
- const: sus
description: >-
Media information will render in the Among Us Font.
In imposter mode, only songs tagged with sus will be in shuffle
2022-12-09 15:18:15 -05:00
2022-12-09 15:12:03 -05:00
- const: niggers
description: >-
Media that was originally available through the now-defunct nigge.rs online radio.
Tagged items may contain the original _nigid and/or _nigkey as metadata
2022-12-09 15:18:15 -05:00
2022-12-09 15:12:03 -05:00
$seeAlso:
- '#/properties/songs/items/properties/metadata/properties/_nigid'
- '#/properties/songs/items/properties/metadata/properties/_nigkey'
2022-12-09 15:18:15 -05:00
2022-12-09 15:12:03 -05:00
- const: splash-song
2022-12-09 15:18:15 -05:00
description: 'Media that can play on the Glowers Club splash page.'
2022-12-09 15:12:03 -05:00
- const: misc
description: 'Media that does not significantly contain music.'
2022-12-09 15:18:15 -05:00
2022-12-09 15:12:03 -05:00
- const: moonman
description: 'Moonman songs'
2022-12-09 15:18:15 -05:00
2022-12-09 15:12:03 -05:00
- regex: '^radio\-media\-style\-[a-z\-]+'
description: >-
2022-12-09 15:19:49 -05:00
Used to add or remove styling for particular Media, such as to remove the
2022-12-09 15:18:15 -05:00
Album Art box or disable background blur.
- type: string
description: 'Tags may also be arbitrary'
2022-12-09 15:12:03 -05:00
2022-11-16 05:47:46 -05:00
metadata:
required: [ title, artist ]
properties:
title: { type: string }
artist: { type: string }
2022-12-07 19:29:16 -05:00
href:
description: 'A URL the original source can be found, if known. Link may be dead'
type: string
format: url
_nigid:
2022-12-09 15:12:03 -05:00
$seeAlso: '#/properties/songs/items/properties/tags/items/1'
description: 'The original song id from nigge.rs.'
2022-12-07 19:29:16 -05:00
type: string
_nigkey:
2022-12-09 15:12:03 -05:00
$seeAlso: '#/properties/songs/items/properties/tags/items/1'
description: 'Content of _id from the original nigge.rs song entry.'
2022-12-07 19:29:16 -05:00
type: string
2022-11-16 05:47:46 -05:00
sources:
type: array
items:
- required: [ type, url ]
properties:
type: { type: string, format: mimetype }
2022-12-09 15:12:03 -05:00
uri: { "$ref": "#/$defs/GWRadioURI" }
2022-12-07 19:29:16 -05:00
previews:
description: >-
This is an array so GWMediaPlayer can better display videos being played as audio only.
The first Item is how the MediaItem *should* be displayed, other Items are alternative versions the player may use.
type: array
items:
- properties:
display_type:
description: 'Used to determine how the media should be displayed. See GWMediaPlayer.EDisplayType'
type: string
2022-12-09 15:12:03 -05:00
uri: { "$ref": "#/$defs/GWRadioURI" }
2022-12-07 19:29:16 -05:00
type: { type: string, format: mimetype }
size: { type: string }
2022-11-12 23:08:28 -05:00
```
2022-12-09 15:12:03 -05:00