#!/usr/bin/python3 from sys import argv, exit from os import walk, path from page_shares import HEAD_EMBED, TAIL_EMBED if len(argv) <= 1: print("No directory was supplied") exit(-1) page = """ Tracks """ page += HEAD_EMBED page += """

Tracks

.xm module tracks of my own. Btw, they're playable in browser :3

Note that some files are rendered incorrectly.


""" for _, _, files in walk(argv[1]): files.sort() for f in files: # note: Base64 gzip encoded data is expected. if not f.endswith('.xm.txt'): continue page += ( f"""

{f[:-4]}

\n""" "
\n" ) break page += TAIL_EMBED page += """ """ print(page)