ws-docs: guide pages archive, audio, data, image, scene, vector; recipes (first part); docs input generators

This commit is contained in:
4DBug committed 2026-10-31 13:16:12 -05:00
1 parent 001e746305
commit 0552f0ebf8
11 files changed
+2253

No files matched your search

+102
View File
@@ -0,0 +1,102 @@
# Docs inputs for the 2D pages (tools/fixtures.py; see tools/docs_check.py): a layered PSD written by ImageMagick (three
# layers: Sky, Box, a half-transparent Glow; the merged image flattened by ImageMagick), a two-frame Aseprite sprite
# (built with the chunk writer of tools/fixtures/aseprite.py), an SVG icon and a Tiled map as TMX and TMJ (hand-written
# from the Tiled format docs).
# tests/gen/docs_2d.luau { files, vars = { psdBytes, asepriteBytes, svgText, tmxText, tmjText } }
import importlib.util, os, struct, tempfile
INPUTS = ["tools/docs_check.py", "tools/fixtures/aseprite.py"]
def load(ctx, name):
spec = importlib.util.spec_from_file_location("docs2d_" + name, os.path.join(ctx.root, "tools", *name.split("/")))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
SVG = """<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 32 32">
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#3070c0"/>
<stop offset="1" stop-color="#a0d0ff"/>
</linearGradient>
</defs>
<rect width="32" height="32" rx="4" fill="url(#sky)"/>
<circle cx="22" cy="10" r="5" fill="#ffd040"/>
<path d="M2 30 L12 16 L20 26 L24 21 L30 30 Z" fill="#306030" stroke="#103010" stroke-width="1"/>
</svg>
"""
# a 4 x 3 map of 16 x 16 tiles: one tileset (tiles.png, 4 columns), a tile layer, an object layer with a spawn point
TMX = """<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="4" height="3" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="2">
<properties>
<property name="music" value="cave.ogg"/>
<property name="gravity" type="float" value="9.8"/>
</properties>
<tileset firstgid="1" name="tiles" tilewidth="16" tileheight="16" tilecount="8" columns="4">
<image source="tiles.png" width="64" height="32"/>
</tileset>
<layer id="1" name="ground" width="4" height="3">
<data encoding="csv">
1,2,2,3,
5,0,0,7,
6,6,6,6
</data>
</layer>
<objectgroup id="2" name="things">
<object id="1" name="spawn" type="Spawn" x="24" y="16">
<point/>
</object>
</objectgroup>
</map>
"""
TMJ = """{ "type": "map", "version": "1.10", "orientation": "orthogonal", "renderorder": "right-down",
"width": 2, "height": 2, "tilewidth": 8, "tileheight": 8, "infinite": false, "nextlayerid": 2, "nextobjectid": 1,
"tilesets": [ { "firstgid": 1, "name": "t", "tilewidth": 8, "tileheight": 8, "tilecount": 4, "columns": 2,
"image": "t.png", "imagewidth": 16, "imageheight": 16 } ],
"layers": [ { "id": 1, "name": "main", "type": "tilelayer", "width": 2, "height": 2, "x": 0, "y": 0,
"opacity": 1, "visible": true, "data": [ 1, 2, 3, 2147483652 ] } ] }
"""
def aseprite(ctx):
A = load(ctx, "fixtures/aseprite.py")
W, H = 32, 24
sky = bytes((40, 90, 160, 255)) * (W * H)
hero = bytes((220, 50, 50, 255)) * 64
f1 = [
A.layer_chunk("Background", flags=1 | 2 | 8),
A.layer_chunk("Hero"),
A.tags_chunk([("walk", 0, 1, 0, 0)]),
A.cel_chunk(0, 0, 0, W, H, sky),
A.cel_chunk(1, 4, 8, 8, 8, hero),
]
f2 = [
A.cel_chunk(0, 0, 0, W, H, b"", link=0),
A.cel_chunk(1, 12, 8, 8, 8, hero),
]
return A.sprite(W, H, 32, [(100, f1), (250, f2)])
def generate(ctx):
dc = load(ctx, "docs_check.py")
files = {"icon.svg": SVG, "level.tmx": TMX, "level.tmj": TMJ, "sprite.aseprite": aseprite(ctx)}
with tempfile.TemporaryDirectory() as d:
out = os.path.join(d, "art.psd")
ctx.nix("imagemagick", ["magick",
"(", "-size", "48x32", "xc:#3070c0", "-set", "label", "Sky", ")",
"(", "-size", "16x16", "xc:#e04040", "-set", "page", "+8+8", "-set", "label", "Box", ")",
"(", "-size", "20x10", "xc:rgba(255,255,0,0.5)", "-set", "page", "+24+18", "-set", "label", "Glow", ")",
"(", "-clone", "0--1", "-background", "none", "-flatten", ")", "-insert", "0",
"-depth", "8", "-type", "TrueColorAlpha", out])
files["art.psd"] = open(out, "rb").read()
dc.emit_inputs(ctx, files, {
"psdBytes": "art.psd",
"asepriteBytes": "sprite.aseprite",
"svgText": "icon.svg",
"tmxText": "level.tmx",
"tmjText": "level.tmj",
})
+167
View File
@@ -0,0 +1,167 @@
# Docs inputs for the 3D, CAD and font guide pages (tools/fixtures.py, tools/docs_check.py): Khronos glTF samples
# from tests/fixtures/gltf (BoxTextured embedded and with external .bin + PNG, Box.glb, RiggedSimple.glb), a
# hand-written OBJ + MTL cube, MagicaVoxel's chr_knight.vox, a small hand-written STEP file, an ASCII subset of
# DejaVu Sans (nixpkgs dejavu_fonts) made by fontTools as TTF, WOFF and WOFF2, and a two-glyph BMFont (text
# descriptor + PNG page) written here.
# tests/gen/docs_3d.luau { files = { [name] = bytes }, vars = { texturedGltfText = ..., ... } }
import importlib.util, json, os, struct, subprocess, zlib
INPUTS = ["tools/docs_check.py", "tests/fixtures/gltf", "tests/fixtures/vox"]
OBJ = """# a unit cube, one material
mtllib cube.mtl
o cube
v 0 0 0
v 1 0 0
v 1 1 0
v 0 1 0
v 0 0 1
v 1 0 1
v 1 1 1
v 0 1 1
vt 0 0
vt 1 0
vt 1 1
vt 0 1
usemtl red
f 1/1 4/4 3/3 2/2
f 5/1 6/2 7/3 8/4
f 1/1 2/2 6/3 5/4
f 2/1 3/2 7/3 6/4
f 3/1 4/2 8/3 7/4
f 4/1 1/2 5/3 8/4
"""
MTL = """newmtl red
Ka 0 0 0
Kd 0.8 0.1 0.1
Ks 0.5 0.5 0.5
Ns 32
"""
STEP = """ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('a point and a direction'),'2;1');
FILE_NAME('part.step','2026-10-31T12:00:00',('docs'),(''),'formats-luau docs','','');
FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
ENDSEC;
DATA;
#1=CARTESIAN_POINT('origin',(0.,0.,0.));
#2=DIRECTION('z',(0.,0.,1.));
#3=DIRECTION('x',(1.,0.,0.));
#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
#5=CARTESIAN_POINT('tip',(10.,20.,5.5));
#6=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
ENDSEC;
END-ISO-10303-21;
"""
def docs_check(ctx):
spec = importlib.util.spec_from_file_location("docs_check", os.path.join(ctx.root, "tools", "docs_check.py"))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
def png(w, h, rgba):
def chunk(t, d):
return struct.pack(">I", len(d)) + t + d + struct.pack(">I", zlib.crc32(t + d) & 0xffffffff)
raw = b"".join(b"\0" + rgba[y * w * 4:(y + 1) * w * 4] for y in range(h))
return (b"\x89PNG\r\n\x1a\n" + chunk(b"IHDR", struct.pack(">IIBBBBB", w, h, 8, 6, 0, 0, 0)) +
chunk(b"IDAT", zlib.compress(raw, 9)) + chunk(b"IEND", b""))
def fonts(ctx):
"""ASCII subset of DejaVu Sans as ttf / woff / woff2 bytes"""
out = subprocess.run(["nix", "build", "--no-link", "--print-out-paths", "nixpkgs#dejavu_fonts"],
capture_output=True, check=True, text=True).stdout.strip().split("\n")[-1]
path = os.path.join(out, "share", "fonts", "truetype", "DejaVuSans.ttf")
code = r"""
import io, sys, json, base64
from fontTools import subset
from fontTools.ttLib import TTFont
res = {}
for flavor in (None, "woff", "woff2"):
f = TTFont(sys.argv[1] if len(sys.argv) > 1 else %r)
opts = subset.Options()
opts.layout_features = ["kern"]
opts.name_IDs = ["*"]
opts.hinting = False
opts.flavor = flavor
s = subset.Subsetter(opts)
s.populate(unicodes=range(32, 127))
s.subset(f)
b = io.BytesIO()
f.flavor = flavor
f.save(b)
res[flavor or "ttf"] = base64.b64encode(b.getvalue()).decode()
print(json.dumps(res))
""" % path
import base64
res = json.loads(ctx.python(["fonttools", "brotli"], code))
return {k: base64.b64decode(v) for k, v in res.items()}
def bmfont():
"""a 16 x 8 page with 'A' (a filled 6 x 7 block) and 'B' (an outline), and its text descriptor"""
w, h = 16, 8
px = bytearray(w * h * 4)
for y in range(7):
for x in range(6):
o = (y * w + x) * 4
px[o:o + 4] = b"\xff\xff\xff\xff"
bx = 8 + x
if x in (0, 5) or y in (0, 6):
o = (y * w + bx) * 4
px[o:o + 4] = b"\xff\xff\xff\xff"
fnt = ('info face="Mini" size=8 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=0 aa=1 '
'padding=0,0,0,0 spacing=1,1\n'
'common lineHeight=9 base=7 scaleW=16 scaleH=8 pages=1 packed=0\n'
'page id=0 file="mini_0.png"\n'
'chars count=2\n'
'char id=65 x=0 y=0 width=6 height=7 xoffset=0 yoffset=0 xadvance=7 page=0 chnl=15\n'
'char id=66 x=8 y=0 width=6 height=7 xoffset=0 yoffset=0 xadvance=7 page=0 chnl=15\n'
'kernings count=1\n'
'kerning first=65 second=66 amount=-1\n')
return fnt, png(w, h, bytes(px))
def generate(ctx):
dc = docs_check(ctx)
g = "tests/fixtures/gltf/"
files = {
"box_textured_embedded.gltf": ctx.read(g + "BoxTextured/glTF-Embedded/BoxTextured.gltf"),
"BoxTextured.gltf": ctx.read(g + "BoxTextured/glTF/BoxTextured.gltf"),
"BoxTextured0.bin": ctx.read(g + "BoxTextured/glTF/BoxTextured0.bin"),
"CesiumLogoFlat.png": ctx.read(g + "BoxTextured/glTF/CesiumLogoFlat.png"),
"Box.glb": ctx.read(g + "Box/glTF-Binary/Box.glb"),
"RiggedSimple.glb": ctx.read(g + "RiggedSimple/glTF-Binary/RiggedSimple.glb"),
"cube.obj": OBJ.encode(),
"cube.mtl": MTL.encode(),
"chr_knight.vox": ctx.read("tests/fixtures/vox/chr_knight.vox"),
"part.step": STEP.encode(),
}
f = fonts(ctx)
files["DejaVuSans-ascii.ttf"] = f["ttf"]
files["DejaVuSans-ascii.woff"] = f["woff"]
files["DejaVuSans-ascii.woff2"] = f["woff2"]
fnt, page = bmfont()
files["mini.fnt"] = fnt.encode()
files["mini_0.png"] = page
dc.emit_inputs(ctx, files, {
"texturedGltfText": "box_textured_embedded.gltf", # glTF with its texture embedded (data: URIs)
"boxGltfText": "BoxTextured.gltf", # glTF referencing BoxTextured0.bin and CesiumLogoFlat.png
"boxBinBytes": "BoxTextured0.bin",
"logoPngBytes": "CesiumLogoFlat.png",
"boxGlbBytes": "Box.glb",
"riggedGlbBytes": "RiggedSimple.glb", # skin + animation
"objText": "cube.obj",
"mtlText": "cube.mtl",
"voxBytes": "chr_knight.vox",
"stepText": "part.step",
"ttfBytes": "DejaVuSans-ascii.ttf",
"woffBytes": "DejaVuSans-ascii.woff",
"woff2Bytes": "DejaVuSans-ascii.woff2",
"fntText": "mini.fnt",
"fntPageBytes": "mini_0.png",
})
+116
View File
@@ -0,0 +1,116 @@
# Docs inputs for the audio / music / video / subtitle guide pages (tools/fixtures.py; tools/docs_check.py reads them):
# tiny ffmpeg test clips (testsrc 64x48, 10 frames at 10 fps, with a sine track): MP4 (H.264 + AAC), AVI (MJPEG +
# PCM), WebM (VP8 + Vorbis); a MIDI file written here (SMF 1: a tempo track and a melody), the SoundFont of
# tools/fixtures/sf2.py (build_sf2), a ProTracker module from tools/fixtures/mod.py (song_basic), and SRT / WebVTT /
# ASS subtitles.
# tests/gen/docs_av.luau { files = { [name] = bytes }, vars = { mp4Bytes = "clip.mp4", ... } }
import importlib.util, os, struct, tempfile
INPUTS = ["tools/docs_check.py", "tools/fixtures/sf2.py", "tools/fixtures/mod.py"]
def load(ctx, name):
spec = importlib.util.spec_from_file_location("docs_av_" + name, os.path.join(ctx.root, "tools", name + ".py"))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
def vlq(n):
out = [n & 0x7F]
n >>= 7
while n:
out.append(0x80 | (n & 0x7F))
n >>= 7
return bytes(reversed(out))
def track(events):
body = b"".join(vlq(dt) + data for dt, data in events) + b"\x00\xff\x2f\x00"
return b"MTrk" + struct.pack(">I", len(body)) + body
def midi():
"""SMF 1, 480 ticks per quarter: track 1 = name + tempo 120 bpm, track 2 = an eight-note melody on channel 0"""
t1 = track([(0, b"\xff\x03\x05Tempo"), (0, b"\xff\x51\x03" + (500000).to_bytes(3, "big")),
(0, b"\xff\x58\x04\x04\x02\x18\x08")])
ev = [(0, b"\xff\x03\x06Melody"), (0, b"\xc0\x00")]
for i, note in enumerate([60, 62, 64, 65, 67, 65, 64, 62]):
ev.append((0, bytes((0x90, note, 100))))
ev.append((240, bytes((0x80, note, 0))))
t2 = track(ev)
return b"MThd" + struct.pack(">IHHH", 6, 1, 2, 480) + t1 + t2
SRT = """1
00:00:00,500 --> 00:00:02,000
Hello, <i>world</i>.
2
00:00:02,500 --> 00:00:04,250
Second line
spans two rows.
"""
VTT = """WEBVTT
intro
00:00.500 --> 00:02.000 align:start
Hello, <b>world</b>.
00:02.500 --> 00:04.250
Second cue.
"""
ASS = """[Script Info]
Title: Docs
ScriptType: v4.00+
PlayResX: 640
PlayResY: 360
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,2,10,10,10,1
Style: Sign,Arial,16,&H0000FFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,8,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.50,0:00:02.00,Default,,0,0,0,,Hello, {\\i1}world{\\i0}.
Dialogue: 0,0:00:02.50,0:00:04.25,Sign,,0,0,0,,A sign\\Nwith two lines
"""
def generate(ctx):
dc = load(ctx, "docs_check")
files = {}
with tempfile.TemporaryDirectory() as d:
src = ["-f", "lavfi", "-i", "testsrc=size=64x48:rate=10:duration=1",
"-f", "lavfi", "-i", "sine=frequency=440:sample_rate=44100:duration=1"]
for name, codec in (
("clip.mp4", ["-c:v", "libx264", "-profile:v", "baseline", "-pix_fmt", "yuv420p", "-g", "5",
"-c:a", "aac", "-b:a", "64k"]),
("clip.avi", ["-c:v", "mjpeg", "-q:v", "4", "-pix_fmt", "yuvj420p", "-c:a", "pcm_s16le"]),
("clip.webm", ["-c:v", "libvpx", "-b:v", "200k", "-g", "5", "-c:a", "libvorbis", "-q:a", "2"]),
):
out = os.path.join(d, name)
ctx.nix("ffmpeg", ["ffmpeg", "-v", "error", "-y"] + src + codec + ["-shortest", out])
files[name] = open(out, "rb").read()
files["tune.mid"] = midi()
sf2 = load(ctx, "fixtures/sf2")
files["bank.sf2"] = sf2.build_sf2(False)[0]
mod = load(ctx, "fixtures/mod")
files["song.mod"] = mod.song_basic()
files["subs.srt"] = SRT
files["subs.vtt"] = VTT
files["subs.ass"] = ASS
dc.emit_inputs(ctx, files, {
"mp4Bytes": "clip.mp4",
"aviBytes": "clip.avi",
"webmBytes": "clip.webm",
"midiBytes": "tune.mid",
"sf2Bytes": "bank.sf2",
"modBytes": "song.mod",
"srtText": "subs.srt",
"vttText": "subs.vtt",
"assText": "subs.ass",
})
+94
View File
@@ -0,0 +1,94 @@
# Docs inputs for the archive / data / playlist pages (tools/fixtures.py; tools/docs_check.py explains the inputs):
# a zip and a .tar.gz by Python's zipfile / tarfile, a 7z (p7zip), .xz (xz) and .zst (zstd) by the reference tools,
# MessagePack / CBOR by the msgpack / cbor2 Python packages, a binary plist by plistlib, a CSV and playlists as text.
# tests/gen/docs_data.luau { files = { [name] = bytes }, vars = { zipBytes = "files.zip", ... } }
import importlib.util, io, os, plistlib, tarfile, tempfile, zipfile, datetime
INPUTS = ["tools/docs_check.py"]
MTIME = 1767225600 # 2026-01-01T00:00:00Z
README = b"formats-luau archive example\n" * 4
SCORES = "name,score,level\nada,1200,3\nbob,950,2\n\"lee, jr\",400,1\n"
CODE = r"""
import sys, json, msgpack, cbor2, datetime
v = {"name": "ada", "score": 1200, "tags": ["x", "y"], "ratio": 0.5, "none": None, "raw": b"\x00\x01\x02"}
sys.stdout.buffer.write(json.dumps({"msgpack": msgpack.packb(v).hex(), "cbor": cbor2.dumps(v).hex()}).encode())
"""
def docs_check(ctx):
spec = importlib.util.spec_from_file_location("docs_check", os.path.join(ctx.root, "tools", "docs_check.py"))
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
return m
def generate(ctx):
import json
dc = docs_check(ctx)
files = {}
tree = {"readme.txt": README, "src/main.luau": b"print('hello')\n", "data/scores.csv": SCORES.encode()}
b = io.BytesIO()
with zipfile.ZipFile(b, "w", zipfile.ZIP_DEFLATED) as z:
z.writestr(zipfile.ZipInfo("src/", (2026, 1, 1, 0, 0, 0)), b"")
for name, data in tree.items():
info = zipfile.ZipInfo(name, (2026, 1, 1, 0, 0, 0))
info.compress_type = zipfile.ZIP_DEFLATED
z.writestr(info, data)
files["files.zip"] = b.getvalue()
b = io.BytesIO()
with tarfile.open(fileobj=b, mode="w:gz", format=tarfile.PAX_FORMAT) as t:
for name, data in tree.items():
info = tarfile.TarInfo(name)
info.size, info.mtime, info.mode = len(data), MTIME, 0o644
t.addfile(info, io.BytesIO(data))
files["files.tar.gz"] = b.getvalue()
with tempfile.TemporaryDirectory() as d:
src = os.path.join(d, "notes.txt")
with open(src, "wb") as f:
f.write(README)
ctx.nix("xz", ["xz", "-k", "-9", src])
ctx.nix("zstd", ["zstd", "-q", "-19", src, "-o", src + ".zst"])
files["notes.txt.xz"] = open(src + ".xz", "rb").read()
files["notes.txt.zst"] = open(src + ".zst", "rb").read()
seven = os.path.join(d, "files.7z")
for name, data in tree.items():
p = os.path.join(d, "t", name)
os.makedirs(os.path.dirname(p), exist_ok=True)
with open(p, "wb") as f:
f.write(data)
ctx.nix("p7zip", ["sh", "-c", "cd '%s' && 7z a -bd -mx=5 '%s' readme.txt src data > /dev/null" % (os.path.join(d, "t"), seven)])
files["files.7z"] = open(seven, "rb").read()
packed = json.loads(ctx.python(["msgpack", "cbor2"], CODE))
files["player.msgpack"] = bytes.fromhex(packed["msgpack"])
files["player.cbor"] = bytes.fromhex(packed["cbor"])
files["info.plist"] = plistlib.dumps({"CFBundleName": "Demo", "Version": 3, "Beta": False,
"Built": datetime.datetime(2026, 1, 1, 12, 0, 0),
"Icon": b"\x89PNG"}, fmt=plistlib.FMT_BINARY, sort_keys=False)
files["scores.csv"] = SCORES
files["mix.m3u"] = ("#EXTM3U\n#PLAYLIST:Docs Mix\n#EXTINF:215,Ada - First Song\nhttps://example.com/music/first.mp3\n"
"#EXTINF:-1,Live Radio\nhttp://radio.example/stream\nsongs/local.flac\n")
files["master.m3u8"] = ("#EXTM3U\n#EXT-X-STREAM-INF:BANDWIDTH=800000,CODECS=\"avc1.4d401e,mp4a.40.2\",RESOLUTION=640x360\n"
"low/index.m3u8\n#EXT-X-STREAM-INF:BANDWIDTH=2400000,RESOLUTION=1280x720\nhigh/index.m3u8\n")
files["radio.pls"] = ("[playlist]\nFile1=http://radio.example/stream\nTitle1=Radio One\nLength1=-1\n"
"File2=https://example.com/music/second.mp3\nTitle2=Second Song\nLength2=187\n"
"NumberOfEntries=2\nVersion=2\n")
files["mix.xspf"] = ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n"
" <title>Docs Mix</title>\n <trackList>\n <track>\n <location>https://example.com/music/first.mp3</location>\n"
" <title>First Song</title>\n <creator>Ada</creator>\n <duration>215000</duration>\n"
" </track>\n </trackList>\n</playlist>\n")
dc.emit_inputs(ctx, files, {
"zipBytes": "files.zip",
"tgzBytes": "files.tar.gz",
"sevenzBytes": "files.7z",
"xzBytes": "notes.txt.xz",
"zstBytes": "notes.txt.zst",
"msgpackBytes": "player.msgpack",
"cborBytes": "player.cbor",
"bplistBytes": "info.plist",
"csvText": "scores.csv",
"m3uText": "mix.m3u",
"hlsText": "master.m3u8",
"plsText": "radio.pls",
"xspfText": "mix.xspf",
})